Documentation
¶
Overview ¶
Package cli contains implementation of the Nametag cli subcommands
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HTTPClient = &http.Client{
Transport: &httpTransport{},
}
HTTPClient is the HTTP client used by the CLI.
View Source
var Log = log.New(io.Discard, "", 0)
Log is the logger used by the CLI
View Source
var Version = strings.TrimSpace(string(versionBuf))
Version is the version of the command line tool.
Functions ¶
func NewAPIClient ¶
func NewAPIClient(cmd *cobra.Command) (*api.ClientWithResponses, error)
NewAPIClient returns a new API client configured as appropriate given the environment variables and command line flags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.