# Functions
CreateGenericCommand can be used to add all the typical flags and arguments etc if your command is based on GenericCommand.
MountAsCommand takes the given definition and mounts it on app using name.
MustRegisterCommand registers a command and panics if it cannot.
New creates a new CLI Builder.
No description provided by the author
No description provided by the author
ParseStateTemplate parses body as a go text template with supplied values exposed to the user.
ParseStateTemplateWithFuncMap parses body as a go text template with supplied values exposed to the user with additional functions available to the template.
RegisterCommand adds a new kind of command.
No description provided by the author
RunStandardCLI runs a standard command line instance with shutdown watchers etc.
No description provided by the author
No description provided by the author
WithAppDefinitionBytes uses a provided app definition rather than load one from disk.
WithAppDefinitionFile sets a file where the definition should be loaded from.
WithConfigPaths overrides the path to the app configuration file, should be a full absolute path.
WithContextualUsageOnError handles application termination by showing contextual help rather than returning an error.
WithLogger sets a custom logger to use.
WithStderr configures a standard error out handle to output.
WithStdout configures a standard out handle to output.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AppBuilder is the main runner and configuration handler.
No description provided by the author
Definition defines the entire application, it's the root of the app with all possible sub commands below it.
GenericArgument is a standard command line argument.
GenericCommand is a typical command with the minimal options all supported.
No description provided by the author
GenericFlag is a standard command line flag.
GenericSubCommands is the typical sub commands most commands support, custom plugins can choose to use this if they support sub commands.
No description provided by the author
No description provided by the author
Transform is a generic transformation definition.
# Interfaces
Command is the interface a command plugin should implement.
No description provided by the author
Logger is a pluggable logger interface.
# Type aliases
CommandConstructor should exist in any package that is used as a plugin.
Option configures the builder.