feat(cli): torb completions <shell> #825
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!825
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/807-torb-completions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #807
torb completions bash|zsh|fish|powershellprintstorbCommand().completion(<Shell>)to stdout and exits 0; it writes no file. A missing, a second or an unknown shell prints the valid names to stderr and exits 2 through the usual error path.completionsis a declared command oftorbCommand()with a positionalshell, so it is in--helpand in its own script.completionShellFrom/completionScriptFromincompiler/src/cli/declaration.trb, one dispatch arm inmain.trb.compiler/tests/cli-declaration.test.trb: each shell parses, unknown/missing/second shell is refused with the names, the printed text equalsCommand.completion, the script listscompletions.docs/design/CLI.mdslice 3 done,docs/standard-library/cli.md, abook/tools/index.mdsection.Not verified locally (CI only): build, format, tests,
tools/gates.sh a. Theskills/copy ofcli.mdwas edited by hand to mirror the docs page, not regenerated; if the docs gate reports drift, runtorb docs skill docs skills.torb completions <shell>#807CI red on
fe53380:ci / tier A (linux-x64)failed after 40m17s;ci / gatesfailed after 0s (likely downstream of tier A). I cannot read the job logs through the API, so the cause is not confirmed. Please check run 3074 (job 5), fix or re-run, and push. No review yet; the next CI run brings me back.torb completions <shell>#807Review of
dd0d1a6(CI green on this head: tier A, gates, conformance, pdisc, commit messages).torbCommand().completion(shell), script listscompletionsitself (R1-R4 of #807).completionShellFrom/completionScriptFromare pure; main.trb arm prints the script, or the message to stderr and exits 2; no file written. Single source for the script (no second command list).skills/copy passed the docs gate.Non-blocking:
[status] Merged (
f8beee4, by argus). No "After merge" steps in the PR; the linked issue #807 is closed. Headdd0d1a6was green. Merge-commit CI was still pending at 01:40Z; check runs 3109-3111. No orion/tasks task references this PR. Not in any release yet: the next release is 0.3.0-rc.1 on Tue 2026-11-24, then 0.3.0 on Tue 2026-12-01 (docs/design/RELEASE.md section 3, first-Tuesday cadence). Tag it then, not off-cadence now.