cli

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL