Documentation
¶
Overview ¶
package cmdos is a library for creating CLIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgDefault ¶
func ArgDefault(val string) flagArg
ArgDefault can be used when you want to give a flag a default value.
func ArgRequire ¶
func ArgRequire() flagArg
ArgRequire can be used to force the user to set a flag on a command.
Types ¶
type HelpTemplate ¶
type HelpTemplate interface {
HelpTemplate() string
}
HelpTemplate is an optional interface. Implement this method to use a custom template to generate help text.
type Subcommands ¶
type Subcommands interface {
Subcommands() []Command
}
Subcommands is an optional interface. Implement this method to register subcommands on a Command.
type Values ¶
type Values struct {
// contains filtered or unexported fields
}
Values gives you access to flag values.
Click to show internal directories.
Click to hide internal directories.