Skip to content

docs: refresh CLI help blocks + fix dvs_status R signature#189

Closed
CGMossa wants to merge 1 commit into
mainfrom
docs/specs-cli-help-refresh
Closed

docs: refresh CLI help blocks + fix dvs_status R signature#189
CGMossa wants to merge 1 commit into
mainfrom
docs/specs-cli-help-refresh

Conversation

@CGMossa
Copy link
Copy Markdown
Contributor

@CGMossa CGMossa commented May 4, 2026

Summary

Documentation-only refresh of specs.md against the live CLI binary, plus a one-line fix to the function table in dvs-rpkg/CLAUDE.md. Split off from #188 so the docs land independently of the CLI option-ordering change.

Changes

specs.md:

  • Top-level blurb: document --json and --threads as global options (work pre- or post-subcommand) and call out the relationship to DVS_NUM_THREADS.
  • Refresh all four <sub> --help code blocks to match the live binary output.
  • dvs status: add the missing [PATHS] argument, -r / --recursive, and --with-metadata flag.
  • Add a paragraph explaining [PATHS] / -r / --with-metadata semantics for status.
  • Correct the dvs_status R signature: (paths, recursive, status) (was (current, absent, unsynced) — those are now folded into the status character vector).

dvs-rpkg/CLAUDE.md:

  • Fix the same stale dvs_status signature in the function table.

Test plan

  • Render specs.md and verify the help blocks match dvs <sub> --help exactly
  • Verify the dvs_status R signature line in dvs-rpkg/CLAUDE.md matches R/dvs_status.R

- specs.md: refresh all CLI help blocks against the live binary; document
  --threads (with pre/post-subcommand placement note); add the missing
  [PATHS], -r/--recursive, --with-metadata for status; correct the
  dvs_status R signature.
- dvs-rpkg/CLAUDE.md: fix stale dvs_status signature in the function
  table (was current/absent/unsynced; now paths/recursive/status).
CGMossa added a commit that referenced this pull request May 4, 2026
specs.md and dvs-rpkg/CLAUDE.md are split into a docs-only PR (#189);
this branch keeps only the CLI-side changes (display_order on globals,
ui/main_cli_help.sh, justfile ui-publish-only fix).
CGMossa added a commit that referenced this pull request May 4, 2026
specs.md and dvs-rpkg/CLAUDE.md are split into a docs-only PR (#189);
this branch keeps only the CLI-side changes (display_order on globals,
ui/main_cli_help.sh, justfile ui-publish-only fix).
@CGMossa CGMossa marked this pull request as draft May 5, 2026 09:58
@CGMossa
Copy link
Copy Markdown
Contributor Author

CGMossa commented May 5, 2026

I need to find a meaningful way to provide an overview of this mess.

@CGMossa CGMossa closed this May 5, 2026
CGMossa added a commit that referenced this pull request May 16, 2026
specs.md and dvs-rpkg/CLAUDE.md are split into a docs-only PR (#189);
this branch keeps only the CLI-side changes (display_order on globals,
ui/main_cli_help.sh, justfile ui-publish-only fix).
CGMossa added a commit that referenced this pull request May 16, 2026
Adds `ui/main_cli_help.sh` (139 lines) capturing the full `--help`
output for `dvs init / add / get / status` so the option-ordering
behavior of the current clap layout is pinned down and visible in
the published UI HTML. Anyone refactoring `CommonOpts` /
`Cli` / per-command structs has an obvious diff to compare against.

Supporting changes:

- dvs-cli/src/main.rs:
  - `#[command(next_display_order = 100)]` on each subcommand so
    per-command options render in a stable order regardless of
    insertion order.
  - `display_order = 0/1` on the two global flags (`--json`,
    `--threads`) so they appear at the top of every command's
    options block.

- justfile:
  - Register `cli_help` in `ui_names` so `just ui-run` /
    `ui-render` / `ui-publish` pick the new script up.
  - `ui-publish-only`: conditionally include `ui/helpers.sh` as a
    source attachment only when the target script actually sources
    it (`main_cli_help.sh` doesn't).

Squashed from 10 commits (multiple reverts of an abandoned
CommonOpts flatten experiment + 2 cargo-fmt commits + doc churn
moved to #189) — the net diff is small and stands on its own.
CGMossa added a commit that referenced this pull request May 17, 2026
Adds `ui/main_cli_help.sh` (139 lines) capturing the full `--help`
output for `dvs init / add / get / status` so the option-ordering
behavior of the current clap layout is pinned down and visible in
the published UI HTML. Anyone refactoring `CommonOpts` /
`Cli` / per-command structs has an obvious diff to compare against.

Supporting changes:

- dvs-cli/src/main.rs:
  - `#[command(next_display_order = 100)]` on each subcommand so
    per-command options render in a stable order regardless of
    insertion order.
  - `display_order = 0/1` on the two global flags (`--json`,
    `--threads`) so they appear at the top of every command's
    options block.

- justfile:
  - Register `cli_help` in `ui_names` so `just ui-run` /
    `ui-render` / `ui-publish` pick the new script up.
  - `ui-publish-only`: conditionally include `ui/helpers.sh` as a
    source attachment only when the target script actually sources
    it (`main_cli_help.sh` doesn't).

Squashed from 10 commits (multiple reverts of an abandoned
CommonOpts flatten experiment + 2 cargo-fmt commits + doc churn
moved to #189) — the net diff is small and stands on its own.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant