Documentation
¶
Index ¶
- func CheckErr(msg interface{})
- 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 LessContent(content string) error
- func PrintErr(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 ¶
CobraAddSubCommandInOrder in the order of the subcommand provided.
func CobraCheckErrWithHelp ¶
CobraCheckErrWithHelp instead of cobra default behavior.
func CobraMarkHiddenGlobalFlags ¶
CobraMarkHiddenGlobalFlags that from params.
func CobraMarkHiddenGlobalFlagsExcept ¶
CobraMarkHiddenGlobalFlagsExcept the flags from params.
func LessContent ¶
LessContent is like shell command: echo "content" | less
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.