Documentation ¶
Index ¶
- func Bool(name, usage string, dest *bool) *altsrc.BoolFlag
- func BoolTrue(name, usage string, dest *bool) *altsrc.BoolTFlag
- func Duration(name, usage string, value time.Duration, dest *time.Duration) *altsrc.DurationFlag
- func EnsureDir(fileName string)
- func FileExists(filePath string) bool
- func Float64(name, usage string, value float64, dest *float64) *altsrc.Float64Flag
- func Int(name, usage string, value int, dest *int) *altsrc.IntFlag
- func Join(path, filename string) string
- func MinUint32(a, b uint32) uint32
- func NewCommand(name string, usage string, action interface{}, subcommands cli.Commands, ...) cli.Command
- func RightJustify(s string, w int) string
- func String(name, usage, value string, dest *string) *altsrc.StringFlag
- func StringSlice(name, usage string, value *cli.StringSlice) *altsrc.StringSliceFlag
- func SubCommands(sc ...cli.Command) []cli.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) *altsrc.Float64Flag
Float64 returns an altsrc.Float64Flag
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 NewCommand ¶
func NewCommand( name string, usage string, action interface{}, subcommands cli.Commands, aliases ...string, ) cli.Command
NewCommand returns a cli.Command
func RightJustify ¶
RightJustify takes a string and right justifies it by a width or crops it
func String ¶
func String(name, usage, value string, dest *string) *altsrc.StringFlag
String returns an altsrc.StringFlag
func StringSlice ¶
func StringSlice(name, usage string, value *cli.StringSlice) *altsrc.StringSliceFlag
StringSlice returns and altsrc.StringSliceFlag
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.