Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCLIContext ¶
func NewCLIContext(t *testing.T, app *cli.App, args ...CliArgument) *cli.Context
NewCLIContext creates a new cli context with optional arguments this is a useful to make testing of commands compact
Types ¶
type CliArgument ¶
CliArgument is a way to apply argument to given flagset/context
func BoolArgument ¶
func BoolArgument(name string, value bool) CliArgument
BoolArgument introduces a new boolean argument for cli context
func Int64Argument ¶
func Int64Argument(name string, value int64) CliArgument
Int64Argument introduces a new int64 argument for cli context
func IntArgument ¶
func IntArgument(name string, value int) CliArgument
IntArgument introduces a new int argument for cli context
func StringArgument ¶
func StringArgument(name, value string) CliArgument
StringArgument introduces a new string argument for cli context
func StringSliceArgument ¶
func StringSliceArgument(name string, values ...string) CliArgument
StringSliceArgument introduces a new string slice argument for cli context
Click to show internal directories.
Click to hide internal directories.