[Feature] Add -l,--label
argument to workspaces foreach
as a step down from -v,--verbose
.
#6033
Closed
2 tasks done
Labels
enhancement
New feature or request
Describe the user story
Using
workspaces foreach
in CI all but requires the use of--verbose
so that you know which package any given output line comes from. But if a task has no or minimal output, the CI output is polluted with usually-pretty-uninterestingProcess started
/Process exited
pairs, which (when you have dozens of packages) help obscure any output of interest.notionalized output from only part of my CI running Prettier
Try to see which file in the above output failed the task! Now imagine doing that for 100 packages.
Describe the solution you'd like
A
-l,--label
argument toworkspaces foreach run
, which prefixes every log line with the package but does not print start/exit/timing information.-v,--verbose
would imply-l,--label
.This has to be implemented in core, since this behavior is part of a core plugin.
same notional output as above, but without the start/exit lines
The above example is still pretty wordy because of the Prettier CLI configuration, but it's already a lot easier to scan the highly-repetitive Prettier output for outliers.
Describe the drawbacks of your solution
--verbose --no-label
, which if you want to do it... go for it. It's your party.Describe alternatives you've considered
--verbose
. Makes the CI all but impossible to understand. :(The text was updated successfully, but these errors were encountered: