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 eb94ba2
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 43 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
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 eb94ba2

Please sign in to comment.