Documentation
¶
Overview ¶
Package cli implements the idea command-line interface as a thin HTTP client to the daemon (Decision D1).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitCodeTable ¶ added in v0.7.0
func ExitCodeTable() string
ExitCodeTable renders the taxonomy as the markdown table embedded in docs/cli.md. internal/docsgen splices it between its markers, and `make docs-check` fails when the two differ.
func Main ¶ added in v0.7.0
Main runs the CLI and returns the process exit code. It is the single exit point: every failure any command returns is classified and rendered here, once.
Where the error goes:
- Without --json: `idea: <message>` on stderr, as it always was, plus a `hint:` line when the failure carries a specific next step.
- With --json: `{"error":{…}}` on stdout, so a script reads one stream and parses one document whether the command succeeded or not. The exception is a command that already printed its payload before failing — `idea verify --json` prints the coverage and then exits 5 over an unmet gate. A second document there would make stdout unparseable as JSON, so the error object goes to stderr instead. The rule a script can rely on: under --json, stdout holds exactly one JSON document.
Types ¶
This section is empty.
Source Files
¶
- advance.go
- budget.go
- capture.go
- change.go
- channel.go
- cli.go
- client.go
- config_problems.go
- detach.go
- disposition.go
- docs.go
- doctor_executor.go
- doctor_keys.go
- eval.go
- exitcode.go
- explain_export.go
- flags.go
- gaps.go
- help_layout.go
- huh.go
- integrations.go
- judgment.go
- key.go
- mcp.go
- model_cmd.go
- next.go
- outcomes.go
- prd.go
- qr.go
- quality.go
- remote.go
- remoteruns.go
- runevents.go
- state_cmds.go
- style.go
- tasks.go
- ui.go
- watch.go