Documentation ¶
Index ¶
- func AskConfirmation(label string, args ...interface{}) (answeredYes bool, wasAnswered bool)
- func CopyFile(inPath, outPath string)
- func Dedent(input string) string
- func Description(value string) description
- func Ensure(condition bool, message string, args ...interface{})
- func Example(value string) example
- func ExamplePrefixed(prefix string, examples string) example
- func Execute(f func(cmd *cobra.Command, args []string) error) execute
- func FileExists(path string) bool
- func NoError(err error, message string, args ...interface{})
- func Quit(message string, args ...interface{})
- func Root(usage, short string, opts ...CommandOption) *cobra.Command
- func Run(usage, short string, opts ...CommandOption)
- type BeforeAllHook
- type CommandOption
- type CommandOptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskConfirmation ¶
func Description ¶
func Description(value string) description
func ExamplePrefixed ¶ added in v0.0.2
func FileExists ¶
func Run ¶
func Run(usage, short string, opts ...CommandOption)
Types ¶
type BeforeAllHook ¶
type CommandOption ¶
type CommandOption interface {
// contains filtered or unexported methods
}
func Command ¶
func Command(execute func(cmd *cobra.Command, args []string) error, usage, short string, opts ...CommandOption) CommandOption
type CommandOptionFunc ¶
Click to show internal directories.
Click to hide internal directories.