Documentation
¶
Overview ¶
Package cli contains implementation of the Nametag cli subcommands
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root = &cobra.Command{ Use: "nametag", Short: "Nametag command line interface", Version: Version, SilenceUsage: true, SilenceErrors: true, }
Root is the main command.
View Source
var Server = "https://nametag.co"
Server is the URL of the Nametag server.
This is generally constant, but is replaceable for testing and non-production environments
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.