cli

package
v0.0.0-...-8d0dba2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

func ReportError

func ReportError(w io.Writer, err error)

ReportError is shared by installed and generated entrypoints. A failed child or a JSON result already owns its diagnostics; printing again loses that boundary.

Types

type App

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

func New

func New() *App

func (*App) Run

func (a *App) Run(args []string) error

Jump to

Keyboard shortcuts

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