Repository navigation
chore(deps): update usage-rs to 7.1.3 - #121
Closed
sweepies-ops[bot] wants to merge 1 commit into
Closed
sweepies-ops[bot] wants to merge 1 commit into
sweepies-ops[bot] wants to merge 1 commit into
Conversation
Patchula: v1 Patchula-Branch: c3ab909e584db753cd67cfce84c985288d1b19f934fd1bd043839c9d1e7cc5c7 Patchula-Base: c1bac95 Patchula-Plan: 42727ed1395786e2f1f640b1c1ad2428a30363dde6f9d49b15f5111a480f6366
43 tasks
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Oct 31, 2026 4:04a.m. | Review ↗ | |
| JavaScript | Oct 31, 2026 4:04a.m. | Review ↗ | |
| Shell | Oct 31, 2026 4:04a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
9 tasks
Contributor
Author
|
Batched by the Count into #127. Tick this update's box there to bring it back. |
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.
usage-rs
Source · Compare changes
Release notes: 7.0.1 → 7.1.3 (5 releases)
7.1.3
display_orderon a subcommand now sets where its whole help section appears, not just its position within the section. Before this, the ungroupedCommands:section, which holds the built-inhelp, always came first.Fixed
(cli) CLIs that group subcommands with
help_headingcan now put the defaultCommands:section after their named sections (#1583, @jdx). Each section is placed according to the lowestdisplay_orderamong its commands. A command without adisplay_ordercounts as999, so the built-inhelpnever moves its section forward. Sections with the same value keep their current order.usage-argvruntime help and theusage-libreference renderer both follow this rule.Help used to list
Commands:(completion, help), thenSource:, thenDependencies:. It now listsSource:,Dependencies:, thenCommands:.If none of your commands set
display_order, help looks the same as before. If you setdisplay_orderon grouped commands but not on ungrouped ones, the ungrouped section now appears last.Full Changelog: jdx/usage@v7.1.2...v7.1.3
💚 Sponsor usage
usage is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If
usagepowers CLI specs, docs, or completions for a tool you maintain or use, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep usage fast, free, and independent.7.1.2
Generated bash, zsh and fish completion scripts no longer expand completion candidates or file extensions as shell code. Mounted commands also stop picking up the mounting spec's top-level completers. The first fix matters for tools like mise, where candidates can come from project files. Regenerate any completion files you've installed to get the script fixes.
Fixed
usage generate completion bashused to pass candidates throughcompgen -W, which expands them as shell input. Arun=completer that printed$(touch pwned)ran that command when you pressed Tab, and a*candidate turned into the files in the current directory. Thecompletion-inithandler had the same globbing problem. Both now read one candidate per line without expanding it, so a candidate that contains a space stays one entry instead of splitting in two._files -gpattern, and zsh runs glob qualifiers as code. The pattern is now built only from plain extension names (letters, digits,_ . + -). If no usable names are left, completion falls back to unfiltered_files. This also fixes a single extension, which produced*.(toml)and matched nothing. It now produces*.toml.*or?in an extension no longer matches extra files.Changed
mountnow uses only the completers it declares itself, in its owncompletenodes or inside itsargnodes (#1581, @jdx). Before, a mounted argument that shared a name with a top-level completer (for example<tool>) used the mounting spec's completer, even when the mounted command declared its own. If you type one of the mounting CLI's flags inside a mounted command, its value still completes the same way it does outside the mount. Specs without mounts are unaffected. If a mounted command relied on a top-level completer, declare it in the spec that the mount emits instead, for example withcomplete "tool" run="..."inside thecmd.Full Changelog: jdx/usage@v7.1.1...v7.1.2
💚 Sponsor usage
usage is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If
usagepowers CLI specs, docs, or completions for a tool you maintain or use, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep usage fast, free, and independent.7.1.1
Nushell completion scripts generated by
usage-argvand the Go runtime no longer print a deprecation warning on nushell 0.116.Fixed
spansargument, so the generated script printed anu::shell::deprecatedwarning every time it completed (#1570, @jdx). The completer now uses the{|place|}signature. On 0.116 it reads the tokens from$place.command, and on older nushell releases, which pass the token list directly, it uses that list. If you already had an external completer installed, it still gets called, and it receives the input in the format it expects: the token list for completers written withspans, the original input for everything else. If you saved the script to a file, regenerate it to pick up the fix.Full Changelog: jdx/usage@v7.1.0...v7.1.1
💚 Sponsor usage
usage is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If
usagepowers CLI specs, docs, or completions for a tool you maintain or use, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep usage fast, free, and independent.7.1.0
This release adds
usage-spec-effect, a new npm package that turns Effect v4effect/clicommand trees into usage specs. It also fixes bash completions fromusage-argv, which could pass the command a different value than the one offered when a candidate contained quotes, spaces or other shell syntax.Added
(spec)
usage-spec-effectexports a usage spec from an Effect v4effect/clicommand tree (#1564, @jdx). Effect still parses and runs the CLI, and the spec drives shell completions, markdown docs and man pages. It requireseffect4.x.mycli --usage-spec | usage generate completion bash mycli --file -The exporter handles nested subcommands, aliases, unlisted commands, examples, shared flags (exported as
global), flag aliases, boolean and valued flags, choices, defaults, and optional and variadic args. Some constructs can only be exported approximately:orElsealternatives, file, redacted and key-value types (exported as strings), non-primitive defaults, and flags with an optional value.generateWithReportreturns these in anunsupportedlist so they aren't dropped without notice. Effect's publicCommandtype doesn't expose flags or arguments, so the exporter reads the command's runtime config. If a future Effect release changes that shape,generatethrows an error that names the command. See the Effect integration guide.Fixed
usage-argvandusage-dynamicnow escape bash completion candidates so the command gets the value that was offered (#1566, @jdx). Before this fix, Readline put candidates on the line unescaped, so a candidate liketasks."hello.sh"reached the command astasks.hello.sh, andit's hereleft an unclosed quote on the line. Candidates are now backslash-escaped. When a quote is already open in the word (',"or$'), each candidate is escaped for that quote style instead. Path completions still use Readline's own filename quoting, and zsh and fish were already correct. Hosts handling__complete_word__should callrender_request(&answer, &request)instead ofrender(&answer, shell)so the open-quote state is used.App::completion_requestinusage-dynamicalready does this. The script-based bash completions behindusage complete-wordare unchanged, sincecompgen -Wcan't carry spaces or quotes in candidates.Full Changelog: jdx/usage@v7.0.2...v7.1.0
💚 Sponsor usage
usage is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If
usagepowers CLI specs, docs, or completions for a tool you maintain or use, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep usage fast, free, and independent.7.0.2
Two completion fixes: completing a script now uses the same
.<script>.usage.kdlsidecar spec thatusage execruns with, and short flags show their help text in completion menus.Fixed
usage complete-word -f <script>now reads a.<script>.usage.kdlfile next to the script before falling back to itsUSAGEcomments, the same lookupusage execalready did (#1558, @jdx). Before this, a script with a sidecar completed against the comment spec, or against nothing at all. The bash, zsh and fish scripts fromusage generate completion-initcallcomplete-word, so they get the fix without being regenerated. Otherusage generatesubcommands that take-f <script>, such ascompletionandmarkdown, now prefer the sidecar too. When the sidecar doesn't setnameorbin, the script's basename is used. Inline specs and stdin input work as before.The Count left some release notes out to keep this description short; read them all.