Versions in this module Expand all Collapse all v1 v1.1.0 Dec 9, 2021 Changes in this version + var CheckErr = cobra.CheckErr + var EnableCommandSorting = func(enabled bool) + type Command = *cobra.Command + type CompletionOptions = cobra.CompletionOptions + type FlagSet = *pflag.FlagSet + type FlagSetFunc = func(flags FlagSet) + type Option interface + func WithCompletionOptions(completionOptions CompletionOptions) Option + func WithLong(long string) Option + func WithRun(run RunFunc) Option + func WithShort(short string) Option + func WithUse(use string) Option + type RunFunc func(cmd Command, args []string) + type Shark struct + func NewShark(ops ...Option) *Shark + func (super *Shark) Command() Command + func (super *Shark) SetFlags(set FlagSetFunc)