cli

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

Types

type App

type App struct {
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) Run

func (a *App) Run(ctx context.Context, args []string) error

type OutputFormat

type OutputFormat string
const (
	FormatText OutputFormat = "text"
	FormatJSON OutputFormat = "json"
	FormatLog  OutputFormat = "log"
)

Jump to

Keyboard shortcuts

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