Skip to content

feat(cli): add completion subcommand via usage-rs 7.4.0 - #366

Merged
sweepies merged 1 commit into
mainfrom
feat/cli-completion
Nov 23, 2026
Merged

sweepies merged 1 commit into
mainfrom
feat/cli-completion

Conversation

@sweepies

@sweepies sweepies commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Bump usage-rs to 7.4.0 with the completions feature (and usage in mise.toml / mise.lock to 7.4.0).
  • Enable completion on App (so patchula __complete_word__ serves dynamic Tab completions) and mount usage_rs::completion::Completion as patchula completion <shell> [--install [--force]] using Completion::run_split (script on stdout, --install report on stderr).
  • Generate generated/completions/patchula.{bash,zsh,fish} in mise-tasks/docs/cli via patchula completion <shell> so release archives ship the same self-contained callback scripts (no runtime usage binary required).
  • Regenerate crates/cli/tests/help.txt and docs/src/content/docs/reference/cli.md, update docs/src/content/docs/installation.mdx, and add an end-to-end CLI integration test covering script output, --install, foreign-file refusal, --force, invalid args, and __complete_word__ callbacks.

Verification

  • cargo test --locked -p patchula-cli (93 unit + 17 integration tests passing)
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • hk check --step cargo-fmt --step nu-lint --step mise --step mise-lock --step secrets
  • mise run help:snapshot and mise run docs:cli

View guided diff Turn on auto-fix

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula d091c30 Commit Preview URL

Branch Preview URL
Nov 23 2026, 04:56 AM

@socket-security

socket-security Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​usage-rs@​7.3.0 ⏵ 7.4.0981009310080

View full report

@sweepies
sweepies force-pushed the feat/cli-completion branch from 7e4051d to 67f60ae Compare November 23, 2026 04:52
@sweepies
sweepies force-pushed the feat/cli-completion branch from 67f60ae to d091c30 Compare November 23, 2026 04:55
@sweepies
sweepies merged commit 436c23a into main Nov 23, 2026
20 checks passed
@sweepies
sweepies deleted the feat/cli-completion branch November 23, 2026 05:07
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 23, 2026
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