Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootCommand ¶
type RootCommand struct { Output string `flag:"output,required" short:"o" description:"output file name"` Num int `flag:"num" default:"42" description:"some number for command"` IsOK bool `flag:"is-ok,persist" short:"i" default:"true" description:"some persistent flag"` }
RootCommand with @Cobra(
usage = "cli", example = "cli [-F file | -D dir] ... [-f format] profile", short = "Root command of the application (short)", long = "Root command of the application (long)",
)
Click to show internal directories.
Click to hide internal directories.