completions/yarn: Allow running scripts as subcommand

Fixes #5674.

[ci skip]
This commit is contained in:
Fabian Homborg 2019-02-19 14:23:18 +01:00
parent 6aa2f29901
commit 59955391ad

View file

@ -78,7 +78,8 @@ function __fish_yarn_run
end end
end end
complete -c yarn -n '__fish_seen_subcommand_from run' -a "(__fish_yarn_run)" # Scripts can be used like normal subcommands, or with `yarn run SCRIPT`.
complete -c yarn -n '__fish_use_subcommand; or __fish_seen_subcommand_from run' -a "(__fish_yarn_run)"
complete -f -c yarn -n '__fish_use_subcommand' -a tag complete -f -c yarn -n '__fish_use_subcommand' -a tag
complete -f -c yarn -n '__fish_seen_subcommand_from tag' -a 'add rm ls' complete -f -c yarn -n '__fish_seen_subcommand_from tag' -a 'add rm ls'