Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package cli implements agent-manager's subcommands over internal/sessioncmd, the same layer the MCP server drives. An agent whose CLI carries no MCP client reaches the workspace from its shell instead, and both fronts speak the same words because the sentences come from sessioncmd.

Index

Constants

This section is empty.

Variables

View Source
var ErrUsageShown = errors.New("usage shown")

ErrUsageShown reports that -h already printed the usage, so the caller exits without an error line.

Functions

func Commands

func Commands(version string, specs settingSpecs) map[string]Command

func CommandsWithArchiveOwner added in v0.43.0

func CommandsWithArchiveOwner(version string, specs settingSpecs, owner sessioncmd.ArchiveOwner) map[string]Command

func CommandsWithBackend added in v0.43.0

func CommandsWithBackend(version string, specs settingSpecs, backend *sessioncmd.Backend) map[string]Command

func ExitCode added in v0.43.0

func ExitCode(err error) int

ExitCode is the status a failed subcommand exits with: 1, or sessioncmd.ExitMayHaveReached for a prompt that may sit in the pane.

func Help

func Help(version string, proactive bool) string

Types

type Command

type Command func(args []string, caller func() string, configDir string) error

Command takes its caller as a function so a command that acts as no session never pays for resolving one, which from a terminal means asking tmux.

Jump to

Keyboard shortcuts

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