Skip to content

Commit

Permalink
fix: add : escaping for tasks with multiple colons (#3853)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitamal authored Dec 28, 2024
1 parent 71ec24b commit a9b6e00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ complete "plugin" run="mise plugins --core --user"
complete "prefix" run="mise ls-remote {{words[PREV]}}"
complete "setting" run="mise settings | awk '{print $1}'"
complete "task" run=r#"
mise tasks --json | jq -r '.[] | (.name | sub(":"; "\\:")) + ":" + (.description | sub(":"; "\\:"))'
mise tasks --json | jq -r '.[] | (.name | gsub(":"; "\\:")) + ":" + (.description | gsub(":"; "\\:"))'
"# descriptions=true

complete "tool@version" run=r#"
Expand Down
2 changes: 1 addition & 1 deletion src/assets/mise-extra.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ complete "plugin" run="mise plugins --core --user"
complete "prefix" run="mise ls-remote {{words[PREV]}}"
complete "setting" run="mise settings | awk '{print $1}'"
complete "task" run=r#"
mise tasks --json | jq -r '.[] | (.name | sub(":"; "\\:")) + ":" + (.description | sub(":"; "\\:"))'
mise tasks --json | jq -r '.[] | (.name | gsub(":"; "\\:")) + ":" + (.description | gsub(":"; "\\:"))'
"# descriptions=true

complete "tool@version" run=r#"
Expand Down

0 comments on commit a9b6e00

Please sign in to comment.