Documentation ¶
Index ¶
- func CheckGitPath() string
- func InitializeApp(app *cli.App)
- func SetActions(app *cli.App)
- func SetFlags(app *cli.App)
- func ToDelimited(s string, del uint8) string
- func ToKebab(s string) string
- func ToScreamingDelimited(s string, del uint8, screaming bool) string
- func ToScreamingKebab(s string) string
- func ToScreamingSnake(s string) string
- func ToSnake(s string) string
- func ToValidBranchName(s string, convention string, isCustom bool) string
- func TransformInput(ans interface{}) interface{}
- type Answers
- type BranchType
- type BranchTypeMap
- type NamingConvention
- type TypeConvention
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToDelimited ¶
ToDelimited Converts a string to delimited.snake.case (in this case `del = '.'`)
func ToScreamingDelimited ¶
ToScreamingDelimited Converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `del = '.'; screaming = true`) or delimited.snake.case (in this case `del = '.'; screaming = false`)
func ToScreamingKebab ¶
ToScreamingKebab Converts a string to SCREAMING-KEBAB-CASE
func ToScreamingSnake ¶
ToScreamingSnake Converts a string to SCREAMING_SNAKE_CASE
func ToValidBranchName ¶
ToValidBranchName Transform string to valid git branch name
func TransformInput ¶
func TransformInput(ans interface{}) interface{}
TransformInput Trim and ToLower input
Types ¶
type Answers ¶
type Answers struct {
// contains filtered or unexported fields
}
Answers struct for answer
type BranchType ¶
type BranchType struct { Feature string Enhance string Bugfix string Hotfix string Test string Release string Custom string }
BranchType List predefined of BranchType
type NamingConvention ¶
NamingConvention Naming convention
type TypeConvention ¶
TypeConvention Type convention
Click to show internal directories.
Click to hide internal directories.