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 'script' scripts
local-a commands binaries scripts
local-a scriptNames scriptCommands
local i runJSON
runJSON=$(yarn run --json 2>/dev/null)
binaries=($(sed-E'/Commands available/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g;s/:/\\:/g;s/,/\n/g'<<<"$runJSON"))