cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Package cli implements AgentRoute's plain, scriptable command surface (cobra commands), per the architecture plan §7.5-7.6. The TUI (Phase 8) is a separate, additive frontend over the same internal packages this package orchestrates.

Index

Constants

View Source
const (
	ExitOK            = 0
	ExitGeneric       = 1
	ExitUsage         = 2
	ExitMissingKey    = 3
	ExitGatewayFailed = 4
	ExitLinkFailed    = 5
)

Exit codes are part of AgentRoute's plain-mode contract: scripts and other agents depend on these being stable. Documented in docs/cli.md.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New builds AgentRoute's root cobra command with every plain-mode subcommand registered, plus the TUI: invoked with no subcommand on an interactive TTY, the root command itself launches the TUI (plan §7.6); `agentroute tui` forces it regardless of TTY detection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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