Documentation
¶
Overview ¶
Package sample provides sample commands that demonstrate the command package.
Boiler plate flag-based command for convenience:
type SampleCommand struct {
command.FlagCommandBase
}
func NewSampleCommand() *SampleCommand {
return &SampleCommand{
FlagCommandBase: command.NewFlagCommandBase("name", "description"),
}
}
func (cmd SampleCommand) Run(args []string) error {
return nil
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelloCommand ¶
type HelloCommand struct {
command.FlagCommandBase
}
Sample hello command for printing "Hello" to the console.
func (HelloCommand) Run ¶
func (cmd HelloCommand) Run(args []string) error
Run the command. See usage string for details.
Click to show internal directories.
Click to hide internal directories.