Documentation
¶
Overview ¶
Package simple demonstrates basic usage of the cli package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGreetCommand ¶
NewGreetCommand creates a new greet command.
Types ¶
type EchoCommand ¶
type EchoCommand struct {
// contains filtered or unexported fields
}
EchoCommand demonstrates a command with flags.
func (*EchoCommand) BindFlags ¶
func (c *EchoCommand) BindFlags(fs *pflag.FlagSet)
BindFlags binds the command flags.
type GreetCommand ¶
type GreetCommand struct{}
GreetCommand is the simplest command - no flags, just positional args.
Click to show internal directories.
Click to hide internal directories.