Versions in this module Expand all Collapse all v0 v0.0.3 Jan 12, 2022 Changes in this version + 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 Args cobra.PositionalArgs + func ExactArgs(n int) Args + func ExactValidArgs(n int) Args + func MaximumNArgs(n int) Args + func MinimumNArgs(n int) Args + func RangeArgs(min int, max int) Args + type BeforeAllHook func(cmd *cobra.Command) + type CommandOption interface + func Command(execute func(cmd *cobra.Command, args []string) error, usage, short string, ...) CommandOption + func Group(usage, short string, opts ...CommandOption) CommandOption + type CommandOptionFunc func(cmd *cobra.Command) + type Flags func(flags *pflag.FlagSet) + type PersistentFlags func(flags *pflag.FlagSet)