Documentation ¶ Index ¶ func WithContext(runner Runner) func(cmd *cobra.Command, args []string) error type CLI func NewCLI(name, desc string) *CLI func (c *CLI) AddCommands(commands ...*cobra.Command) func (c *CLI) Execute() error type Runner Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WithContext ¶ func WithContext(runner Runner) func(cmd *cobra.Command, args []string) error Types ¶ type CLI ¶ type CLI struct { // contains filtered or unexported fields } func NewCLI ¶ func NewCLI(name, desc string) *CLI func (*CLI) AddCommands ¶ func (c *CLI) AddCommands(commands ...*cobra.Command) func (*CLI) Execute ¶ func (c *CLI) Execute() error type Runner ¶ type Runner func(ctx context.Context) error Source Files ¶ View all Source files cli.go runner.go Click to show internal directories. Click to hide internal directories.