Repository navigation
docs(serverless): shorten the volumes command help - #227
Conversation
The volumes group and its subcommands carried several times more help text than the other serverless groups. Cut each to a one-line purpose, the facts a user needs to run it and one example, and each flag to a short clause. The group stays hidden.
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change that makes serverless volumes help more concise.
No open issues 🎉
What changed in this PR
Shortens help for the hidden serverless volumes command group while retaining essential lifecycle, upload, configuration, and beta-access guidance. Command behavior and generated documentation remain unchanged.
Changes:
- Condenses command descriptions, examples, and flag help.
- Updates help tests to match the shorter wording and normalize line wrapping.
- Moves symlink error advice beside the file-walking implementation.
| File | Description |
|---|---|
internal/volumes/put/walk.go |
Houses the unchanged symlink error-advice constant. |
internal/volumes/put/put_test.go |
Checks concise additive-upload and resume guidance. |
internal/volumes/put/help.go |
Shortens upload help and examples. |
internal/cmd/serverless/volumes.go |
Condenses upload flag descriptions. |
internal/cmd/serverless/volumes_test.go |
Updates upload-help assertions and normalizes whitespace. |
internal/cmd/serverless/volumes_manage.go |
Shortens group and management-command help. |
internal/cmd/serverless/volumes_manage_test.go |
Updates lifecycle-help checks and normalizes whitespace. |
Review effort: Balanced
danmrichards
left a comment
There was a problem hiding this comment.
From Dan Richards's agent (Claude), not Dan Richards.
Added three suggestions. LGTM ✅
…iles Rolling an app back does not restore older Volume files, and no command removes a file, so the group help keeps the sentence that says so and points at a new Volume for a clean start.
… example The delete asks before it takes the rollback of older app versions, and --yes skips that question, so the example leads with the form that asks, as apps delete does.
The test matched the raw help text, so rewrapping a phrase across two lines would fail the positive checks and silently pass the negative one. The group and put help tests already collapse it.
danmrichards
left a comment
There was a problem hiding this comment.
From Dan Richards's agent (Claude), not Dan Richards.
LGTM ✅
…me key (#228) Two small Shared Volumes fixes. `runware serverless volumes settings` printed `Enabled: no` and exited 0 when the organization does not have Shared Volumes, so a script could not tell that case from an enabled one without parsing the output. It now prints the settings as before (table or `--format json`), then exits 1 with `this organization does not have Shared Volumes enabled` on stderr, the same print-then-fail shape as `apps connectors test`. Exit status 1 also covers a failed read, so a script that must tell the two apart reads stdout, which carries the settings (`"available": false` with `--format json`) only when they were read. The help text is unchanged until #227, which rewrites the same lines, lands. When `volumes put` resumes an upload, `resumePlan.clear` now zeroes the saved session's copy of the sealing key along with its own copy and the file keys. This closes no leak: the release deferred in `run` already zeroed that copy as soon as the resumed upload returned, so the change only zeroes it earlier, when the plan is done with it. A new test fails without the change. Written with Claude Code (Claude Opus 5.5).
The help of the hidden
serverless volumesgroup and its subcommands was several times longer than that of the other serverless groups (the description aboveUsage:ran 29 lines for the group and 31 forput, against 2 to 12 forapps,secrets,connectorsandenvironments). This cuts each command to a one-line purpose, what a user needs to run it, and one example, and each flag to a short clause.The group help keeps the lifecycle (
volumes create,volumes put,deploy --mount), that workers mount the latest files read-only when they start, that a Volume is not the node-localdeploy --volumefolder, and that the commands are beta and need Shared Volumes enabled.putkeeps what it uploads, that uploads are additive and resume when re-run, and where the organization id comes from.deletekeeps one sentence on which Volumes the API deletes today (others answer 501), because a user hits that.--helplinesThe group stays hidden and out of the generated command reference (
make docsis unchanged). The help tests now check the new wording and collapse line wrapping before matching.Drafted with Claude Code (Claude Opus 5.5).