commandstest

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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