package
0.18.0
Repository: https://github.com/appcelerator/amp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AtLeastArgs returns an error if the min number of args are not passed.
ExactArgs returns an error if the exact number of args are not passed.
Exit ensures that any registered functions are executed before exiting with the specified status code.
FlagErrorFunc prints an error message which matches the format of the docker/docker/cli error messages.
GetToken returns the stored token.
NewCLI returns a new CLI instance.
NewClientConn is a helper function that wraps the steps involved in setting up a grpc client connection to the API.
NewConsole creates a CLI Console instance that writes to the provided stream.
NewInStream returns a new InStream object from a ReadCloser.
NewLogger creates a CLI Logger instance that writes to the provided stream.
NewOutStream returns a new OutStream object from a Writer.
NoArgs checks that the command is not passed any parameters.
OnExit is used to register functions that should be executed upon exiting.
RangeArgs returns an error if the min and max number of args are not passed.
ReadClientConfig reads the CLI configuration.
ReadOrg reads the active org from file.
ReadTeam reads the active team from file.
ReadToken reads the authentication token from file.
RemoveFile removes the preferences file from the .config folder.
RemoveToken deletes the authentication token file.
SaveOrg saves the active org to file.
SaveTeam saves the active team to file.
SaveToken saves the authentication token to file.
SetupRootCommand sets default usage, help, and error handling for the root command.

# Constants

Credentials suffix for authentication token file.
DefaultAddress for amp connection.
DefaultPort for amp connection.
Padding for tabwriter.

# Variables

DarkTheme defines colors appropriate for a dark terminal.
LightTheme defines colors appropriate for a light terminal.

# Structs

Configuration is for all configurable client settings.
Console augments basic logging functions with a theme that can be applied for various standardized CLI output functions, such as Success and Error.
InStream is an input stream used by the DockerCli to read user input.
Logger is a simple logger for the AMP CLI that also implements grpclog.Logger.
LoginCredentials represents login credentials.
OutStream is an output stream used by the Cli to write normal program output.
No description provided by the author
StatusError reports an unsuccessful exit by a command.
Theme is struct for terminal color functions.

# Interfaces

Interface for the CLI's functionality.

# Type aliases

Errors is a list of errors.