Documentation
¶
Overview ¶
Package cli provides a base struct for creating CLI applications using Cobra. It contains common functionality for creating CLI applications, such as providing a logger, adding commands and running the root command.
Index ¶
Constants ¶
View Source
const Indentation = ` `
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
Base is a base struct for creating CLI applications using Cobra. This should be embedded into a struct that contains the specific commands for the CLI application.
func (*Base) AddCommand ¶
AddCommand adds one or more commands to the root command of the CLI application.
Click to show internal directories.
Click to hide internal directories.