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) PluginDirectory() string
- func (fcli *FakeCommandLine) RepoDirectory() string
- func (fcli *FakeCommandLine) ShowHelp()
- func (fcli *FakeCommandLine) ShowVersion()
- func (fcli *FakeCommandLine) String(key string) string
- func (fcli *FakeCommandLine) StringSlice(key string) []string
- type FakeFileInfo
- type FakeFlagger
- type FakeIoUtil
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) PluginDirectory ¶
func (fcli *FakeCommandLine) PluginDirectory() string
func (*FakeCommandLine) RepoDirectory ¶
func (fcli *FakeCommandLine) RepoDirectory() string
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 FakeFileInfo ¶
type FakeFileInfo struct {
IsDirectory bool
}
func (*FakeFileInfo) IsDir ¶
func (ffi *FakeFileInfo) IsDir() bool
func (FakeFileInfo) ModTime ¶
func (ffi FakeFileInfo) ModTime() time.Time
func (FakeFileInfo) Mode ¶
func (ffi FakeFileInfo) Mode() os.FileMode
func (FakeFileInfo) Name ¶
func (ffi FakeFileInfo) Name() string
func (FakeFileInfo) Size ¶
func (ffi FakeFileInfo) Size() int64
func (FakeFileInfo) Sys ¶
func (ffi FakeFileInfo) Sys() interface{}
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 FakeIoUtil ¶
func (*FakeIoUtil) RemoveAll ¶
func (util *FakeIoUtil) RemoveAll(path string) error
Click to show internal directories.
Click to hide internal directories.