dsifford / yarn-completion

Bash completion for Yarn
MIT License
277 stars 25 forks source link

Incorrect suggestion with script name with colon `:` #56

Open ChromeQ opened 12 months ago

ChromeQ commented 12 months ago

I have some scripts in my package.json which contain the : character, this is common for commands such as build:dev or build:prod and lint:fix or lint:errors but this bash script will not complete the command when pressing tab key after the :

Example: package.json with several scripts with colon: image

type the start of a script name and hit tab: image

my choices are expo:prebuild or expo:preview so it's good to check in with me which to autocomplete, type the b character for prebuild and press tab again: image

My bash skills are not good enough to tackle this myself so I'm hoping you can do a quick fix or suggest something as it works for the npm-completion script. Thanks