Documentation ¶
Index ¶
- func MakeHelp(c AutoHelp) string
- func OptionsHelpOutput(flags []*flag.Flag) string
- type AutoHelp
- type ByName
- type DumpCommand
- type EvalCommand
- type MultiArg
- type RFCCommand
- type RFCListCommand
- func (c *RFCListCommand) Description() string
- func (c *RFCListCommand) Help() string
- func (c *RFCListCommand) InitOpts()
- func (c *RFCListCommand) Run(args []string) int
- func (c *RFCListCommand) Synopsis() string
- func (c *RFCListCommand) Usage() string
- func (c *RFCListCommand) VisitAllFlags(fn func(*flag.Flag))
- type TechSupportCommand
- func (c *TechSupportCommand) Description() string
- func (c *TechSupportCommand) Help() string
- func (c *TechSupportCommand) InitOpts()
- func (c *TechSupportCommand) Run(args []string) int
- func (c *TechSupportCommand) Synopsis() string
- func (c *TechSupportCommand) Usage() string
- func (c *TechSupportCommand) VisitAllFlags(fn func(*flag.Flag))
- type VersionCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionsHelpOutput ¶
OptionsHelpOutput returns a string of formatted options
Types ¶
type AutoHelp ¶
type AutoHelp interface { Usage() string Description() string InitOpts() VisitAllFlags(func(f *flag.Flag)) }
AutoHelp specifies the necessary methods required to have their help completely generated for them.
type DumpCommand ¶
func (*DumpCommand) Description ¶
func (c *DumpCommand) Description() string
Description is the long-form command help.
func (*DumpCommand) Help ¶
func (c *DumpCommand) Help() string
Help returns the full help output expected by `sockaddr -h cmd`
func (*DumpCommand) InitOpts ¶
func (c *DumpCommand) InitOpts()
InitOpts is responsible for setup of this command's configuration via the command line. InitOpts() does not parse the arguments (see parseOpts()).
func (*DumpCommand) Synopsis ¶
func (c *DumpCommand) Synopsis() string
Synopsis returns a terse description used when listing sub-commands.
func (*DumpCommand) Usage ¶
func (c *DumpCommand) Usage() string
Usage is the one-line usage description
func (*DumpCommand) VisitAllFlags ¶
func (c *DumpCommand) VisitAllFlags(fn func(*flag.Flag))
VisitAllFlags forwards the visitor function to the FlagSet
type EvalCommand ¶
func (*EvalCommand) Description ¶
func (c *EvalCommand) Description() string
Description is the long-form command help.
func (*EvalCommand) Help ¶
func (c *EvalCommand) Help() string
Help returns the full help output expected by `sockaddr -h cmd`
func (*EvalCommand) InitOpts ¶
func (c *EvalCommand) InitOpts()
InitOpts is responsible for setup of this command's configuration via the command line. InitOpts() does not parse the arguments (see parseOpts()).
func (*EvalCommand) Synopsis ¶
func (c *EvalCommand) Synopsis() string
Synopsis returns a terse description used when listing sub-commands.
func (*EvalCommand) Usage ¶
func (c *EvalCommand) Usage() string
Usage is the one-line usage description
func (*EvalCommand) VisitAllFlags ¶
func (c *EvalCommand) VisitAllFlags(fn func(*flag.Flag))
VisitAllFlags forwards the visitor function to the FlagSet
type RFCCommand ¶
func (*RFCCommand) Description ¶
func (c *RFCCommand) Description() string
Description is the long-form command help.
func (*RFCCommand) Help ¶
func (c *RFCCommand) Help() string
Help returns the full help output expected by `sockaddr -h cmd`
func (*RFCCommand) InitOpts ¶
func (c *RFCCommand) InitOpts()
InitOpts is responsible for setup of this command's configuration via the command line. InitOpts() does not parse the arguments (see parseOpts()).
func (*RFCCommand) Synopsis ¶
func (c *RFCCommand) Synopsis() string
Synopsis returns a terse description used when listing sub-commands.
func (*RFCCommand) Usage ¶
func (c *RFCCommand) Usage() string
Usage is the one-line usage description
func (*RFCCommand) VisitAllFlags ¶
func (c *RFCCommand) VisitAllFlags(fn func(*flag.Flag))
VisitAllFlags forwards the visitor function to the FlagSet
type RFCListCommand ¶
func (*RFCListCommand) Description ¶
func (c *RFCListCommand) Description() string
Description is the long-form command help.
func (*RFCListCommand) Help ¶
func (c *RFCListCommand) Help() string
Help returns the full help output expected by `sockaddr -h cmd`
func (*RFCListCommand) InitOpts ¶
func (c *RFCListCommand) InitOpts()
InitOpts is responsible for setup of this command's configuration via the command line. InitOpts() does not parse the arguments (see parseOpts()).
func (*RFCListCommand) Run ¶
func (c *RFCListCommand) Run(args []string) int
Run executes this command.
func (*RFCListCommand) Synopsis ¶
func (c *RFCListCommand) Synopsis() string
Synopsis returns a terse description used when listing sub-commands.
func (*RFCListCommand) Usage ¶
func (c *RFCListCommand) Usage() string
Usage is the one-line usage description
func (*RFCListCommand) VisitAllFlags ¶
func (c *RFCListCommand) VisitAllFlags(fn func(*flag.Flag))
VisitAllFlags forwards the visitor function to the FlagSet
type TechSupportCommand ¶
func (*TechSupportCommand) Description ¶
func (c *TechSupportCommand) Description() string
Description is the long-form command help.
func (*TechSupportCommand) Help ¶
func (c *TechSupportCommand) Help() string
Help returns the full help output expected by `sockaddr -h cmd`
func (*TechSupportCommand) InitOpts ¶
func (c *TechSupportCommand) InitOpts()
InitOpts is responsible for setup of this command's configuration via the command line. InitOpts() does not parse the arguments (see parseOpts()).
func (*TechSupportCommand) Run ¶
func (c *TechSupportCommand) Run(args []string) int
Run executes this command.
func (*TechSupportCommand) Synopsis ¶
func (c *TechSupportCommand) Synopsis() string
Synopsis returns a terse description used when listing sub-commands.
func (*TechSupportCommand) Usage ¶
func (c *TechSupportCommand) Usage() string
Usage is the one-line usage description
func (*TechSupportCommand) VisitAllFlags ¶
func (c *TechSupportCommand) VisitAllFlags(fn func(*flag.Flag))
VisitAllFlags forwards the visitor function to the FlagSet
type VersionCommand ¶
VersionCommand is a Command implementation prints the version.
func (*VersionCommand) Help ¶
func (c *VersionCommand) Help() string
func (*VersionCommand) Run ¶
func (c *VersionCommand) Run(_ []string) int
func (*VersionCommand) Synopsis ¶
func (c *VersionCommand) Synopsis() string