Documentation
¶
Index ¶
- func CobraAddSubCommandInOrder(rootCommand *cobra.Command, subcommands ...*cobra.Command)
- func CobraCheckErrWithHelp(cmd *cobra.Command, errMsg interface{})
- func CobraMarkHiddenGlobalFlags(command *cobra.Command, flags ...string)
- func CobraMarkHiddenGlobalFlagsExcept(parentCommand *cobra.Command, unhiddenFlags ...string)
- func DirExists(path string) bool
- func FileExists(path string) bool
- func IsDir(path string) bool
- func IsInStringSlice(a string, list []string) bool
- func LessContent(content string) error
- func PrintErr(msg interface{})
- func PrintErrExit(msg interface{})
- func RemoveDuplStr(strSlice []string) []string
- func Unzip(zipName, dstDir string) error
- func Zip(pathToZip, zipName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CobraAddSubCommandInOrder ¶ added in v1.6.0
CobraAddSubCommandInOrder in the order of the subcommand provided.
func CobraCheckErrWithHelp ¶ added in v1.6.0
CobraCheckErrWithHelp instead of cobra default behavior.
func CobraMarkHiddenGlobalFlags ¶ added in v1.6.0
CobraMarkHiddenGlobalFlags that from params.
func CobraMarkHiddenGlobalFlagsExcept ¶ added in v1.6.0
CobraMarkHiddenGlobalFlagsExcept the flags from params.
func FileExists ¶ added in v0.3.0
func IsInStringSlice ¶ added in v1.15.0
func LessContent ¶ added in v1.7.0
LessContent is like shell command: echo "content" | less
func PrintErrExit ¶ added in v1.15.0
func PrintErrExit(msg interface{})
func RemoveDuplStr ¶ added in v0.9.0
RemoveDuplStr item from slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.