cli

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package cli implements atago's command-line interface: subcommand dispatch and the mapping from results to exit codes.

Index

Constants

View Source
const (
	ExitOK       = 0 // all scenarios passed
	ExitFailures = 1 // one or more scenarios failed
	ExitParse    = 2 // spec parse error
	ExitConfig   = 3 // configuration error
	ExitExec     = 4 // execution error
	ExitInternal = 5 // internal error
	ExitSecurity = 6 // security policy violation
)

Exit codes. These are part of the stable user-facing contract.

View Source
const ListSchemaVersion = "1"

ListSchemaVersion versions the `atago list --json` contract independently of the manifest, since it is a distinct (smaller) projection.

View Source
const RerunStateSchemaVersion = "1"

RerunStateSchemaVersion versions the last-failed state file.

Variables

This section is empty.

Functions

func Main

func Main(args []string, stdout, stderr io.Writer) int

Main is the CLI entry point. It returns the process exit code.

func Subcommands added in v0.10.0

func Subcommands() []string

Subcommands returns the atago subcommand names in dispatch order. It is derived from the same table Main dispatches through, so documentation-drift tests can check a doc's advertised subcommand list against the real inventory without maintaining a second hand-written list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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