cmd

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Store *store.Store
)

Functions

func Errorf

func Errorf(format string, args ...any)

Errorf prints an error message to stderr.

func Execute

func Execute()

Execute runs the root command.

func IsJSON

func IsJSON() bool

IsJSON returns true if output should be JSON (explicit --json flag).

func IsPlain added in v0.1.1

func IsPlain() bool

IsPlain returns true if output should be plain text (piped, no formatting).

func OutputMode

func OutputMode() string

OutputMode returns "json", "plain", or "text" based on flags and TTY detection.

func PrintJSON

func PrintJSON(v any) error

PrintJSON marshals v to JSON and prints it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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