Skip to content

Commit

Permalink
chore: bump usage-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 26, 2024
1 parent 23db391 commit 74fcd88
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 26 deletions.
37 changes: 16 additions & 21 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 @@ -115,7 +115,7 @@ tokio = { version = "1.37.0", features = [
toml = { version = "0.8.12", features = ["parse"] }
toml_edit = { version = "0.22.12", features = ["parse"] }
url = "2.5.0"
usage-lib = { version = "0.2", features = ["clap"] }
usage-lib = { version = "0.3", features = ["clap"] }
versions = { version = "6.2.0", features = ["serde"] }
walkdir = "2.5.0"
which = "6.0.1"
Expand Down
2 changes: 1 addition & 1 deletion completions/_mise
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ _mise() {
_store_cache _usage_mise_spec spec
fi

_arguments '*: :($(usage complete-word -s "$spec" -- "${words[@]}" ))'
_arguments "*: :(($(usage complete-word --shell zsh -s "$spec" -- "${words[@]}" )))"
return 0
}

Expand Down
4 changes: 2 additions & 2 deletions completions/mise.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ _mise() {
if [[ -z ${_USAGE_SPEC_MISE:-} ]]; then
_USAGE_SPEC_MISE="$(mise usage)"
fi
COMPREPLY=( $(usage complete-word -s "${_USAGE_SPEC_MISE}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) )

COMPREPLY=( $(usage complete-word --shell bash -s "${_USAGE_SPEC_MISE}" --cword="$COMP_CWORD" -- "${COMP_WORDS[@]}" ) )
if [[ $? -ne 0 ]]; then
unset COMPREPLY
fi
Expand Down
2 changes: 1 addition & 1 deletion completions/mise.fish
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if ! command -v usage &> /dev/null
end

set _usage_spec_mise (mise usage | string collect)
complete -xc mise -a '(usage complete-word -s "$_usage_spec_mise" -- (commandline -cop) (commandline -t))'
complete -xc mise -a '(usage complete-word --shell fish -s "$_usage_spec_mise" -- (commandline -cop) (commandline -t))'

0 comments on commit 74fcd88

Please sign in to comment.