ADD --mute/-m flag to mute GROUPS or TASKS#90
ADD --mute/-m flag to mute GROUPS or TASKS#90serapath wants to merge 1 commit intomysticatea:masterfrom
Conversation
|
Thank you for this request and implementation! Hmm, but the option looks cryptic to me. I'd like to separate the This will mute the task "b". Also isn't implementation enough if it set |
|
i don't know. I tried that, but for some reason there were so many complications and errors. In general i consider to build my own version of The foundation regarding the command line usage that i plan is the module subarg which allows nested command line arguments following the same syntax as minimist ... but nested. In my opinion, that would make it a lot more clear how command line options can be passed. I already was confused about the current option of The Your proposal above would mean always the next upcoming task should be "muted", but what about Then - on the other hand - switching |
|
I'm still interested in this pull request. |
a830920 to
43a6b16
Compare
This pull request is not mergable yet, but it works.
...but i really would like to have this feature.
Use Case
Every time i need to run a combination of tasks, like for example:
I would like to just type
npm startornpm testand everything that needs to start starts.I would also like to have logging of the important stuff and quit all those processes when i want.
npm-run-alldoes that, but when all those processes log to the terminal, i dont see what i consider important, so i'd like to be able to mute the tasks i dont want to see.Example
{ "scripts": { "AAA": "echo AAA", "BBB": "echo BBB", "YO": "echo YO", "A": "echo A", "YO": "echo YO", "test": "npm-run-all -nsm AAA -pl BBB AAA BBB -mlpr --silent YO -m --silent A B -s --mute AAA -- --asdf 5" } }So
npm testwill mute:-nsmhas-mafter-s-mlprhas-mbefore-p-mafterYO--muteafter-s