cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(v string)

Types

type AuthError

type AuthError struct {
	// contains filtered or unexported fields
}

AuthError marks a missing credential so Execute exits 2, the same code a rejected token (HTTP 401) produces.

func (*AuthError) Error

func (e *AuthError) Error() string

type UsageError

type UsageError struct {
	// contains filtered or unexported fields
}

UsageError marks an input problem (missing or conflicting flags, bad arguments) that a command detects in its own body, so Execute exits 3 — matching how cobra classifies the parse errors it catches itself.

func (*UsageError) Error

func (e *UsageError) Error() string

Jump to

Keyboard shortcuts

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