cli

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 42 Imported by: 0

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 Main added in v0.1.12

func Main()

Main is the entry point for the CLI.

func New added in v0.1.12

func New() *cobra.Command

New creates a new root command for the Nametag CLI

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