cli

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 106 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli wires every komando command. Design rules:

  • piped or agent output is exactly one JSON envelope (or NDJSON when streaming); a terminal gets text
  • an AI agent is never prompted, and missing input is an error with a hint; a person at a terminal can be asked
  • exit codes are stable (see internal/out)
  • destructive actions require explicit flags; changes are audited, except `update` run as root

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func Execute

func Execute() int

Execute runs the komando program: one call, made from this process (its arguments, environment and terminal), and its exit code.

func RunCall added in v0.14.0

func RunCall(ctx context.Context, c engine.Call, args []string) int

RunCall runs one komando command (args are the words after "komando") as the call c: its envelope or text goes to c.Stdout, its notes to c.Stderr, and its approvals and environment are its own. It returns the exit code. Calls may run at the same time in one process.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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