Documentation ¶
Index ¶
- type FakeCommandLine
- func (fcli *FakeCommandLine) Application() *cli.App
- func (fcli *FakeCommandLine) Args() cli.Args
- func (fcli *FakeCommandLine) Bool(key string) bool
- func (fcli *FakeCommandLine) FlagNames() []string
- func (fcli *FakeCommandLine) Generic(name string) interface{}
- func (fcli *FakeCommandLine) GlobalString(key string) string
- func (fcli *FakeCommandLine) Int(key string) int
- func (fcli *FakeCommandLine) IsSet(key string) bool
- func (fcli *FakeCommandLine) ShowHelp()
- func (fcli *FakeCommandLine) ShowVersion()
- func (fcli *FakeCommandLine) String(key string) string
- func (fcli *FakeCommandLine) StringSlice(key string) []string
- type FakeFlagger
- type StdoutGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCommandLine ¶
type FakeCommandLine struct {
LocalFlags, GlobalFlags *FakeFlagger
HelpShown, VersionShown bool
CliArgs []string
}
func (*FakeCommandLine) Application ¶
func (fcli *FakeCommandLine) Application() *cli.App
func (*FakeCommandLine) Args ¶
func (fcli *FakeCommandLine) Args() cli.Args
func (*FakeCommandLine) Bool ¶
func (fcli *FakeCommandLine) Bool(key string) bool
func (*FakeCommandLine) FlagNames ¶
func (fcli *FakeCommandLine) FlagNames() []string
func (*FakeCommandLine) Generic ¶
func (fcli *FakeCommandLine) Generic(name string) interface{}
func (*FakeCommandLine) GlobalString ¶
func (fcli *FakeCommandLine) GlobalString(key string) string
func (*FakeCommandLine) Int ¶
func (fcli *FakeCommandLine) Int(key string) int
func (*FakeCommandLine) IsSet ¶
func (fcli *FakeCommandLine) IsSet(key string) bool
func (*FakeCommandLine) ShowHelp ¶
func (fcli *FakeCommandLine) ShowHelp()
func (*FakeCommandLine) ShowVersion ¶
func (fcli *FakeCommandLine) ShowVersion()
func (*FakeCommandLine) String ¶
func (fcli *FakeCommandLine) String(key string) string
func (*FakeCommandLine) StringSlice ¶
func (fcli *FakeCommandLine) StringSlice(key string) []string
type FakeFlagger ¶
type FakeFlagger struct {
Data map[string]interface{}
}
func (FakeFlagger) Bool ¶
func (ff FakeFlagger) Bool(key string) bool
func (FakeFlagger) Int ¶
func (ff FakeFlagger) Int(key string) int
func (FakeFlagger) String ¶
func (ff FakeFlagger) String(key string) string
func (FakeFlagger) StringSlice ¶
func (ff FakeFlagger) StringSlice(key string) []string
type StdoutGetter ¶
type StdoutGetter interface { Output() string Stop() }
func NewStdoutGetter ¶
func NewStdoutGetter() StdoutGetter
Click to show internal directories.
Click to hide internal directories.