Correct bower and yarn completions

bower was calling `__fish_should_complete_args`, the old name for
`__fish_should_complete_switches.`
yarn was parsing bower.json instead of package.json.
This commit is contained in:
Mahmoud Al-Qudsi 2018-04-20 09:12:34 -05:00
parent b619f34777
commit a733296980
2 changed files with 2 additions and 2 deletions

View File

@ -58,6 +58,6 @@ function __bower_list_installed
end
complete -c bower -n "__fish_is_first_token" -x -a '(__bower_cmds)'
complete -c bower -n "__fish_should_complete_args" -x -a '(__bower_args)'
complete -c bower -n "__fish_should_complete_switches" -x -a '(__bower_args)'
complete -c bower -n "__fish_seen_subcommand_from install" -x -a '(__bower_matching_pkgs)'
complete -c bower -n "__fish_seen_subcommand_from uninstall" -x -a '(__bower_list_installed)'

View File

@ -39,7 +39,7 @@ function __yarn_installed_packages
end
if type -q jq
jq -r '.dependencies | to_entries[] | .key' bower.json
jq -r '.dependencies | to_entries[] | .key' $package_json
else
set -l depsFound 0
for line in (cat $package_json)