refactor(cli): rename 'server start/stop' to 'up/down', add -d alias#145
Merged
Conversation
`server {start,status}` shared the `st` prefix, so tab-completing either
needed 4 keystrokes (`star`/`stat`). Renaming the lifecycle pair to
`up`/`down` (keeping `status`) drops every server subcommand to a unique
first letter and adopts the wireguard/docker-compose idiom.
`up` is also a better semantic fit: it already ran foreground-by-default
with `--detach` to background, which mirrors compose `up` / `up -d`. The
new `-d` short alias completes that parallel.
Detach's child-argv rebuild (`reconstruct`/`fallbackCommand`) re-execs
this same binary as `server up`, so it moves in lockstep with the wire
name or detached launch breaks. Completion snapshot regenerated
(`completions/ccas.bash`) with `up down status` and `opts="--detach -d"`.
Also fixes a stale README example that still used the pre-#142
top-level `serve` (removed when the lifecycle nested under `server`).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The branch-recycle step force-pushes a tree that is byte-identical to the just-merged, CI-green base, so re-running the pre-push `sbt test` via the hook is pure waste — document `--no-verify` there. Also flag that the reset and the push must be separate Bash calls: the settings allowlist matches commands exactly and won't authorize a `reset && push` compound, so chaining them triggers a needless prompt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Rename the server lifecycle subcommands:
ccas server start→ccas server up,ccas server stop→ccas server down(statusunchanged). Adds a-dshort alias for--detach.Two commits:
refactor(cli)— the rename +-dalias + regenerated completion snapshot + stale-README fix.docs(ship)— unrelated pre-existing ship-skill doc tweak, split out to keep the rename atomic.Why
startandstatusshare thestprefix, so tab-completing either took 4 keystrokes.up/down/statusall get a unique first letter, andup/downis the established wireguard / docker-compose idiom.upalso matches the existing foreground-by-default +--detach-to-background behaviour (composeup/up -d); the new-dalias completes that parallel.Changes
CliCommand.scala—up/downwire names,.alias("d")on--detach, help text; valsserverUp/serverDown.Detach.scala— child-argv rebuild (reconstruct/fallbackCommand) re-execsserver up(lockstep with the wire name or detached launch breaks).CompletionSpec.scala+completions/ccas.bash— leaves/group/summaries; snapshot regenerated (up down status,opts="--detach -d").Main.scala,XdgPaths.scala— comment refs.README.md— doc refs; also fixed a stale top-levelserveexample (dead since the feat(cli): nest server lifecycle under 'ccas server', add status #142 nesting).TestCliParser(renamed + newserver up -dalias case),TestServeLifecycle.Testing
sbt test: 998 passed, 0 failed (pre-push hook + local).ccas server --help/ccas server up --help: rendersup [(-d, --detach)],down,status; help text referencesccas server down.Fixes
None (no open issue) — quality-of-life CLI rename.
🤖 Generated with Claude Code