Documentation ¶
Index ¶
- Constants
- func BlueFont(str string) string
- func ConfirmExecCmdsPrompt(cmds []string) (shouldProceed bool, err error)
- func GetJsonFilePath() (jsonFilePath string, err error)
- func GreenFont(str string) string
- func InitJson()
- func InputPrompt(label string) (input string, err error)
- func PrintErrMsg(msg string, err error)
- func PrintSuccessMsg(msg string)
- func PrintWarnMsg(msg string)
- func RedFont(str string) string
- func SelectGroupPrompt(cmdsMap CmdsMap, additionals ...string) (group string, err error)
- func SelectTaskPrompt(groupMap GroupMap) (task string, err error)
- func YellowFont(str string) string
- type Cmds
- type CmdsMap
- type GroupMap
Constants ¶
View Source
const ( DIR_NAME = ".mycmd" JSON_FILE_NAME = "cmd.json" )
Variables ¶
This section is empty.
Functions ¶
func ConfirmExecCmdsPrompt ¶
func GetJsonFilePath ¶
func InputPrompt ¶
func PrintErrMsg ¶
func PrintSuccessMsg ¶
func PrintSuccessMsg(msg string)
func PrintWarnMsg ¶
func PrintWarnMsg(msg string)
func SelectGroupPrompt ¶
func SelectTaskPrompt ¶
func YellowFont ¶
Types ¶
type CmdsMap ¶
func GetCmdsMap ¶
Click to show internal directories.
Click to hide internal directories.