Documentation
¶
Index ¶
- func Blue(title string, message string)
- func Commit(projectPath, message string) error
- func Error(message string)
- func Green(title string, message string)
- func HasStagedChanges(p string) bool
- func Info(message string)
- func IsGitRepository(p string) bool
- func Red(title string, message string)
- func Success(message string)
- func SuggestOtherCommand(useCase, command, helpCommand string)
- func Warning(message string)
- func YNQuestion(defaultValue *bool, message string)
- func Yellow(title string, message string)
- type CommitMessage
- type ConfigItem
- type Project
- func (p *Project) AddConventions() (err error)
- func (p *Project) AddScopes() (err error)
- func (p *Project) Commit() (err error)
- func (p *Project) CreateCommitMessage() (commit *CommitMessage, err error)
- func (p *Project) CreateGitCommand() error
- func (p *Project) New(version string) (err error)
- func (p *Project) ResetScopes()
- func (p *Project) ScopeFromString(typeString string) *ConfigItem
- func (p *Project) ScopeString() []string
- func (p *Project) TypeFromString(typeString string) *ConfigItem
- func (p *Project) TypesString() []string
- func (p *Project) WriteConfigFile() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasStagedChanges ¶
func IsGitRepository ¶
func SuggestOtherCommand ¶
func SuggestOtherCommand(useCase, command, helpCommand string)
func YNQuestion ¶
Types ¶
type CommitMessage ¶
type CommitMessage struct { Type ConfigItem Scope *ConfigItem Description string Body string }
func (*CommitMessage) String ¶
func (c *CommitMessage) String() string
type ConfigItem ¶
func AddConfigItem ¶
func AddConfigItem(it string) (scope *ConfigItem, err error)
type Project ¶
type Project struct { ConfigFilePath string Path string Version string Scopes []ConfigItem Conventions []ConfigItem }
func LoadProject ¶
func (*Project) AddConventions ¶
func (*Project) CreateCommitMessage ¶
func (p *Project) CreateCommitMessage() (commit *CommitMessage, err error)
func (*Project) CreateGitCommand ¶
func (*Project) ResetScopes ¶
func (p *Project) ResetScopes()
func (*Project) ScopeFromString ¶
func (p *Project) ScopeFromString(typeString string) *ConfigItem
func (*Project) ScopeString ¶
func (*Project) TypeFromString ¶
func (p *Project) TypeFromString(typeString string) *ConfigItem
func (*Project) TypesString ¶
func (*Project) WriteConfigFile ¶
Click to show internal directories.
Click to hide internal directories.