cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExitCodes = map[int]string{
	0: "Success",
	1: "User/Application error (invalid arguments, missing resources, permission denied)",
	2: "System/Network error (connection failed, timeout, server error)",
}

ExitCodes documents the exit codes used by the CLI

View Source
var (

	// Version is set at build time via ldflags
	Version = "dev"
)

Functions

func BannerWithVersion

func BannerWithVersion() string

BannerWithVersion returns the banner with version info

func Execute

func Execute()

func PrintBanner

func PrintBanner()

PrintBanner prints the ASCII art banner

Types

type JSONError added in v0.4.0

type JSONError struct {
	Error     string `json:"error"`
	Code      string `json:"code,omitempty"`
	Category  string `json:"category,omitempty"`
	Operation string `json:"operation,omitempty"`
	Hint      string `json:"hint,omitempty"`
}

JSONError represents an error in JSON format for --json-errors output

Jump to

Keyboard shortcuts

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