cli

package
v0.0.0-...-7911669 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 46 Imported by: 0

Documentation

Overview

Package cli is the command-line surface: it parses argv, resolves the config and runtime, and dispatches to the box engine and scaffolder. The routing: bare `coop` prints help (running an agent is explicit), `coop <agent>` runs a named agent, known subcommands run their command, and an unrecognized command is an error — raw commands run in the box explicitly, via `coop run -- <cmd>`.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the tool version, reported by `coop version`. Defaults to "dev" and is overridden at build time via -ldflags (GoReleaser and the Makefile).

Functions

func Main

func Main(argv []string) int

Main is the process entry point. It returns the exit code to pass to os.Exit.

func RenderManual

func RenderManual(cfg *config.Config) string

RenderManual is the entire CLI reference as ONE deterministic, plain-text document: the reference- form top-level overview, then every command's page in a stable order. It's the single source shared by `coop help --all`, docs/cli.md, and site/llms.txt — so terminal, docs, and the offline reference are provably identical (tools/gendocs -check enforces it). Plain (ui.Palette{}) and state-free, so its bytes never depend on the terminal, the repo's compose file, the config paths, or logins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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