mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
completions/yarn: Allow running scripts as subcommand
Fixes #5674. [ci skip]
This commit is contained in:
parent
6aa2f29901
commit
59955391ad
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue