cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 29 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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