Skip to content

Commit

Permalink
fix: issue with usage and arg completions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 9, 2024
1 parent aeec038 commit 70f64e4
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 45 deletions.
82 changes: 41 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ versions = { version = "6", features = ["serde"] }
vfox = { version = "0.3", default-features = false }
walkdir = "2"
which = "7"
xx = { version = "1", features = ["glob"] }
xx = { version = "2", features = ["glob"] }
xz2 = "0.1"
zip = { version = "2", default-features = false, features = ["deflate"] }

Expand Down
4 changes: 2 additions & 2 deletions mise.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ version = "0.6.0"
version = "2.7.0"

[tools."cargo:usage-cli"]
version = "1.3.3"
version = "1.4.0"

[tools.cosign]
version = "2.4.1"
Expand All @@ -55,7 +55,7 @@ jq-macos-arm64 = "sha256:0bbe619e663e0de2c550be2fe0d240d076799d6f8a652b70fa04aea
version = "0.43.0"

[tools."npm:prettier"]
version = "3.4.1"
version = "3.4.2"

[tools."pipx:toml-sort"]
version = "0.24.2"
Expand Down
5 changes: 4 additions & 1 deletion src/cli/tasks/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ impl TasksLs {
fn display_usage(&self, tasks: Vec<Task>) -> Result<()> {
let mut usage = usage::Spec::default();
for task in tasks {
let (task_spec, _) = task.parse_usage_spec(None)?;
let (mut task_spec, _) = task.parse_usage_spec(None)?;
for (name, complete) in task_spec.complete {
task_spec.cmd.complete.insert(name, complete);
}
usage
.cmd
.subcommands
Expand Down

0 comments on commit 70f64e4

Please sign in to comment.