package
0.1.2
Repository: https://github.com/hashicorp/nomad-pack.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Commands returns the map of commands that can be used to initialize a CLI.
Returns an error if exactly N args aren't provided.
No description provided by the author
Main runs the CLI with the given arguments and returns the exit code.
Returns an error if more than N args provided.
Returns an error if fewer than N args provided.
Returns an error if any args provided.
WithArgs sets the arguments to the command that are used for parsing.
WithClient configures the CLI to initialize a client.
WithConfig configures the CLI to find and load any project configuration.
The same as WithArgs, but also assigns a custom validation function which will return an error if the custom validation criteria are not met.
The same as WithArgs, but also assigns the validation function ExactArgs which returns an error if exactly N args aren't provided.
WithFlags sets the flags that are supported by this command.
The same as WithArgs, but also assigns the validation function MaximumNArgs which returns an error if more than N args are provided.
The same as WithArgs, but also assigns the validation function MinimumNArgs which returns an error if fewer than N args are provided.
The same as WithArgs, but also assigns the validation function NoArgs which returns an error if any args are provided.
WithNoConfig configures the CLI to not expect any project configuration.
WithSingleApp configures the CLI to expect a configuration with one or more apps defined but a single app targeted with `-app`.
WithUI configures the CLI to use a specific UI implementation.

# Constants

EnvLogLevel is the env var to set with the log level.
EnvPlain is the env var that can be set to force plain output mode.

# Variables

ErrParsingArgsOrFlags should be used in the Init method of a CLI command if it returns an error.
ErrSentinel is a sentinel value that we can return from Init to force an exit.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
GenerateHelpCommand exists solely to provide top level help for the registry set of subcommands.
GeneratePackCommand adds a registry to the global cache.
GenerateRegistryCommand adds a registry to the global cache.
No description provided by the author
JobStatusError encapsulates error information related to trying to retrieve status information about a running job.
JobStatusInfo encapsulates status information about a running job.
ListCommand lists all registries and pack that have been downloaded to the current machine.
No description provided by the author
RegistryAddCommand adds a registry to the global cache.
RegistryDeleteCommand deletes a registry from the global cache.
RegistryHelpCommand exists solely to provide top level help for the registry set of subcommands.
RegistryListCommand lists all registries and pack that have been downloaded to the current machine.
No description provided by the author
RenderCommand is a command that allows users to render the templates within a pack and display them on the console.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

Option is used to configure Init on baseCommand.
No description provided by the author