Documentation ¶ Index ¶ func MockExit() func Recover() type Root func New(name string) Root func (r Root) Execute() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MockExit ¶ func MockExit() func Recover ¶ func Recover() Types ¶ type Root ¶ type Root struct { Cmd *cobra.Command } func New ¶ func New(name string) Root func (Root) Execute ¶ func (r Root) Execute() Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. Source Files ¶ View all Source files cli.go Click to show internal directories. Click to hide internal directories.