Skip to content

Commit

Permalink
fix: completions for mise use (jdx#4147)
Browse files Browse the repository at this point in the history
Fixes jdx#4145
  • Loading branch information
jdx authored Jan 17, 2025
1 parent 1b6ea86 commit 2d32a6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -1199,9 +1199,9 @@ case $cur in
done
;;
esac
"#
"""#

complete "installed_tool@version" run=r#"
complete "installed_tool@version" run=#"""
cur="{{words[CURRENT]}}"
case $cur in
*@*)
Expand Down
4 changes: 2 additions & 2 deletions src/assets/mise-extra.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ case $cur in
done
;;
esac
"#
"""#

complete "installed_tool@version" run=r#"
complete "installed_tool@version" run=#"""
cur="{{words[CURRENT]}}"
case $cur in
*@*)
Expand Down
4 changes: 4 additions & 0 deletions xtasks/fig/src/mise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,8 @@ const completionSpec: Fig.Spec = {
description: "Tool(s) to remove",
isOptional: true,
isVariadic: true,
generators: installedToolVersionGenerator,
debounce: true,
},
},
{
Expand Down Expand Up @@ -2625,6 +2627,8 @@ const completionSpec: Fig.Spec = {
name: "installed_tool@version",
description: "Tool(s) to remove",
isVariadic: true,
generators: installedToolVersionGenerator,
debounce: true,
},
},
{
Expand Down

0 comments on commit 2d32a6d

Please sign in to comment.