commands

package
v0.26.9 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package cmd wires the `ronja` command tree.

Design constraints, in priority order:

  1. An agent must be able to drive this without a TTY. Every command takes --json, never prompts when stdin is not a terminal, and exits non-zero on failure with the reason on stderr.
  2. A human must find it pleasant. Human output is short, and the next action is always spelled out.

Index

Constants

View Source
const (
	DefaultWaitInterval = 3 * time.Second
	DefaultWaitTimeout  = 5 * time.Minute
)

DefaultWaitInterval is the cadence --wait-until polls at.

3s matches what the web app polls a running workflow at, and the interval is EXACT — it does not back off. A caller who names a cadence has said what they want, and a poller that quietly stretched to 30s would make a --wait-interval of 1s a lie. --wait-timeout is what bounds the total cost.

Variables

View Source
var Version = "dev"

Version is stamped at build time by the release pipeline:

go install -ldflags "-X github.com/ronjatech/ronja-cli/internal/commands.Version=$(git describe --tags)" ./cmd/ronja

It stays "dev" for a plain `go build` from a checkout, and resolveVersion recovers the real one for `go install ...@version`.

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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