cli

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess  = 0
	ExitError    = 1
	ExitNotFound = 2
)

Standardized exit codes for all pogo CLI commands.

Variables

This section is empty.

Functions

func ExitWithError

func ExitWithError(jsonMode bool, msg string, code int)

ExitWithError prints an error message and exits with the given code. In JSON mode it prints a structured error object.

func PrintJSON

func PrintJSON(v interface{})

PrintJSON marshals v as indented JSON and writes it to stdout. On marshal error it prints an error JSON object and exits with ExitError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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