core

package
v0.0.0-...-debcc72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGitPath

func CheckGitPath() string

CheckGitPath Check git command is available

func InitializeApp

func InitializeApp(app *cli.App)

InitializeApp Init App

func SetActions

func SetActions(app *cli.App)

SetActions Set the actions

func SetFlags

func SetFlags(app *cli.App)

SetFlags Set the flags

func ToDelimited

func ToDelimited(s string, del uint8) string

ToDelimited Converts a string to delimited.snake.case (in this case `del = '.'`)

func ToKebab

func ToKebab(s string) string

ToKebab Converts a string to kebab-case

func ToScreamingDelimited

func ToScreamingDelimited(s string, del uint8, screaming bool) string

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

func ToScreamingKebab(s string) string

ToScreamingKebab Converts a string to SCREAMING-KEBAB-CASE

func ToScreamingSnake

func ToScreamingSnake(s string) string

ToScreamingSnake Converts a string to SCREAMING_SNAKE_CASE

func ToSnake

func ToSnake(s string) string

ToSnake Converts a string to snake_case

func ToValidBranchName

func ToValidBranchName(s string, convention string, isCustom bool) string

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 BranchTypeMap

type BranchTypeMap map[string]string

BranchTypeMap Collection of base branch

type NamingConvention

type NamingConvention struct {
	ToSnake string
	ToKebab string
}

NamingConvention Naming convention

type TypeConvention

type TypeConvention struct {
	ForwardSlash string
	Hyphen       string
	Underscore   string
}

TypeConvention Type convention

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL