cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorColor is used for error messages
	ErrorColor = color.New(color.FgRed).Add(color.Bold)
	// SuccessColor is used for success messages
	SuccessColor = color.New(color.FgGreen).Add(color.Bold)
	// WarnColor is used for warning messages
	WarnColor = color.New(color.FgYellow).Add(color.Bold)
	// InfoColor is used for informational messages
	InfoColor = color.New(color.FgCyan)
)

Color definitions for CLI output

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Version information (set by build using ldflags)

View Source
var (

	// Global UI instance for consistent styling
	UI = tui.NewUI()
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

func NewClient

func NewClient(cfg api.Config) *api.Client

NewClient creates a new API client

Types

type Override

type Override = api.DNSOverride

Override is an alias for api.DNSOverride to simplify usage in the cmd package

Jump to

Keyboard shortcuts

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