Documentation ¶
Index ¶
- func Bool(name, usage string, dest *bool) *cli.BoolFlag
- func BoolTrue(name, usage string, dest *bool) *cli.BoolTFlag
- func Command(name string, usage string, action interface{}, subcommands cli.Commands, ...) cli.Command
- func Duration(name, usage string, value time.Duration, dest *time.Duration) *cli.DurationFlag
- func EnsureDir(fileName string)
- func FileExists(filePath string) bool
- func Float64(name, usage string, value float64, dest *float64) *cli.Float64Flag
- func Int(name, usage string, value int, dest *int) *cli.IntFlag
- func Join(path, filename string) string
- func Lang(name, usage, value string, dest *string) *cli.StringFlag
- func MinUint32(a, b uint32) uint32
- func PrependForWindows(args []string) []string
- func PrependForWindowsWithStart(args []string) []string
- func String(name, usage, value string, dest *string) *cli.StringFlag
- func StringSlice(name, usage string, value *cli.StringSlice) *cli.StringSliceFlag
- func SubCommands(sc ...cli.Command) []cli.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶ added in v0.4.14
func Command(name string, usage string, action interface{}, subcommands cli.Commands, flags []cli.Flag, aliases ...string) cli.Command
Command returns a cli.Command
func EnsureDir ¶
func EnsureDir(fileName string)
EnsureDir checks a file could be written to a path, creates the directories as needed
func FileExists ¶
FileExists reports whether the named file or directory exists.
func Float64 ¶
func Float64(name, usage string, value float64, dest *float64) *cli.Float64Flag
Float64 returns an cli.Float64Flag
func Lang ¶
func Lang(name, usage, value string, dest *string) *cli.StringFlag
Lang returns an cli.StringFlag
func MinUint32 ¶
MinUint32 is a helper function to return the minimum of two uint32s. This avoids a math import and the need to cast to floats.
func PrependForWindows ¶ added in v0.4.14
PrependForWindows runs a command with a terminal
func PrependForWindowsWithStart ¶ added in v0.4.14
PrependForWindowsWithStart runs a process independently
func String ¶
func String(name, usage, value string, dest *string) *cli.StringFlag
String returns an cli.StringFlag
func StringSlice ¶
func StringSlice(name, usage string, value *cli.StringSlice) *cli.StringSliceFlag
StringSlice returns and cli.StringSliceFlag
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.