Documentation
¶
Overview ¶
Package cmd wires the `ronja` command tree.
Design constraints, in priority order:
- 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.
- 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 ¶
Types ¶
This section is empty.
Source Files
¶
- api.go
- api_form.go
- api_output.go
- auth.go
- context.go
- context_local.go
- dataapp.go
- dataapp_clone.go
- dataapp_discard.go
- dataapp_init.go
- dataapp_publish.go
- dataapp_push.go
- dataapp_status.go
- dataapp_validate.go
- database.go
- database_migrate.go
- database_sql.go
- env.go
- legacy.go
- outfile.go
- picker.go
- profile.go
- query.go
- root.go
- stdin.go
- workflow.go
- workflow_clone.go
- workflow_discard.go
- workflow_init.go
- workflow_params.go
- workflow_publish.go
- workflow_push.go
- workflow_status.go
- workflow_testcmd.go
- workflow_testreport.go
- workflow_validate.go
Click to show internal directories.
Click to hide internal directories.