Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Print ¶
Print will try and print a helpful Usage printing of the plugin and any plugins that are provided.
$ buffalo --------- Usage of buffalo: -h, --help print this help Available Commands: buffalo fix Attempt to fix a Buffalo application's API to match version in go.mod buffalo info Print diagnostic information (useful for debugging) buffalo version Print the version information
Types ¶
type CommandNamer ¶
type Describer ¶
type Describer interface {
Description() string
}
Describer is called by `Print` and can be implemented to print a short, single line, description of the plugin. `-h`
type FlagPrinter ¶
type PluginScoper ¶
type SubCommander ¶
type SubCommander = plugcmd.SubCommander
type UsagePrinter ¶
UsagePrinter is called by `Print` and can be implemented to print a large block of usage information after the `Describer` interface is called. This is useful for printing flag information, links, and other messages to users.
Click to show internal directories.
Click to hide internal directories.