mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
completions/yarn: Allow running scripts as subcommand
Fixes #5674. [ci skip]
This commit is contained in:
@@ -78,7 +78,8 @@ function __fish_yarn_run
|
||||
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_seen_subcommand_from tag' -a 'add rm ls'
|
||||
|
||||
Reference in New Issue
Block a user