Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFile ¶
func ToFuncSigs ¶
Types ¶
type Command ¶
type Command struct { Name string Description string ShortDescription string V4APIName string Option []Option Subcommands []string TopLevel bool }
Command is a toplevel or subcommand. They have a set of subcommands if they are toplevel and V4APIName will be set to the name of the Switch case that is associated with the subcommand name. For Example: list-zones will have a switch case named ListZones, and ListZones should call the cloudflare-go method api.ListZones.
func LoadDefinitions ¶
func (*Command) ToArgListWithTypes ¶
func (*Command) ToVariables ¶
type CommandTemplateValues ¶
type FileTemplateValues ¶
type Option ¶
Option is a command line option that can be passed to the program. Commands "have a" set of Options.
func (Option) ToOptionTemplateValue ¶
func (o Option) ToOptionTemplateValue() OptionTemplateValue
type OptionTemplateValue ¶
type SwitchTemplateEntry ¶
Click to show internal directories.
Click to hide internal directories.