From 59955391adfe65b7b68ab44604e40b62118e86af Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 19 Feb 2019 14:23:18 +0100 Subject: [PATCH] completions/yarn: Allow running scripts as subcommand Fixes #5674. [ci skip] --- share/completions/yarn.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/completions/yarn.fish b/share/completions/yarn.fish index 378d466d8..d9549e071 100644 --- a/share/completions/yarn.fish +++ b/share/completions/yarn.fish @@ -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'