commandstest

package
v6.0.2-empolis+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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) PluginURL

func (fcli *FakeCommandLine) PluginURL() 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

type FakeIoUtil struct {
	FakeReadDir     []os.FileInfo
	FakeIsDirectory bool
}

func (*FakeIoUtil) ReadDir

func (util *FakeIoUtil) ReadDir(path string) ([]os.FileInfo, error)

func (*FakeIoUtil) ReadFile

func (i *FakeIoUtil) ReadFile(filename string) ([]byte, error)

func (*FakeIoUtil) RemoveAll

func (util *FakeIoUtil) RemoveAll(path string) error

func (*FakeIoUtil) Stat

func (util *FakeIoUtil) Stat(path string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL