Documentation ¶
Index ¶
- Constants
- Variables
- func Choose(ok bool, first, second string) string
- func FileExist(filepath string) bool
- func FirstOne(name ...string) string
- func GetBinaryDir() string
- func MakeArgument(args map[string]string) string
- func OpenFile(filename string) (*os.File, error)
- func ReadFile(filename string) (string, error)
- func SetFlagErrorFunc(cmd *cobra.Command)
- func SetHelpTemplate(cmd *cobra.Command)
- func SetUsageTemplate(cmd *cobra.Command)
- func Str2Bool(s string) (bool, bool)
- func Str2Int(s string) (int, bool)
- func UnixMilli() int64
- func UnixSec() int64
- func WriteFile(filename, data string, mode int) error
Constants ¶
View Source
const (
PREFIX_COBRA_COMMAND_ERROR = "Error:\n"
)
Variables ¶
View Source
var ( NoArgs = cli.NoArgs RequiresMinArgs = cli.RequiresMinArgs RequiresMaxArgs = cli.RequiresMaxArgs RequiresRangeArgs = cli.RequiresRangeArgs ExactArgs = cli.ExactArgs ShowHelp = command.ShowHelp )
Functions ¶
func GetBinaryDir ¶
func GetBinaryDir() string
func MakeArgument ¶
func SetFlagErrorFunc ¶
func SetHelpTemplate ¶
func SetUsageTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.