revert: suggest binaries on `yarn`
This behavior is the same as before c6bdbc69e1
This commit is contained in:
parent
a47b58ef97
commit
c9b335769c
|
|
@ -76,7 +76,7 @@ _global_commands=(
|
||||||
|
|
||||||
_yarn_commands_scripts() {
|
_yarn_commands_scripts() {
|
||||||
local -a scripts
|
local -a scripts
|
||||||
scripts=($(yarn run --json 2>/dev/null | sed -E '/possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
|
scripts=($(yarn run --json 2>/dev/null | sed -E '/Commands available|possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
|
||||||
_describe 'command or script' _commands -- _global_commands -- scripts
|
_describe 'command or script' _commands -- _global_commands -- scripts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue