commandstest

package
v0.15.0-rancher22 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 4 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) IsSet added in v0.7.0

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

Jump to

Keyboard shortcuts

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