cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 53 Imported by: 0

Documentation

Overview

Package cli is the ynf command line (ADR-011). Every command takes --format json and returns one object; exit codes follow ADR-011.

Index

Constants

View Source
const (
	ExitOK           = 0
	ExitUsage        = 2
	ExitAdapter      = 20 // the forge, git, docker or the store failed
	ExitPolicy       = 30 // config or lanes invalid
	ExitUnsettled    = 31 // sweep --until-settled timed out
	ExitDifferences  = 32 // replay found decisions that differ
	ExitStartRefused = 33 // start refused the item before creating anything
)

Exit codes (ADR-011).

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, stdout, stderr io.Writer) int

Run runs the command line and returns the exit code.

func RunIn

func RunIn(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) int

RunIn is Run with the input a command may read, such as the grades a person types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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