-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add name-prefix option #75
base: master
Are you sure you want to change the base?
Conversation
We already have no-prefix and this mode. Can you explain the need for another one? |
The difference is this: With prefix: The first option might be annoying because it adds a prefix to each line. This new option will print the name of the package, but will not prefix each line. Another option would be to change |
Can you elaborate on that a bit? Let me explain what I mean by reasons why we have the two options:
Is the reason something like enabling easier copy-paste? If so we could consider just removing the pipe leaving in the indentation only... For naming, I see the bind we're in. I think |
The difference to the Let's say you have 10 packages, and you run So I want it to log like this:
The
Using a prefix it gives me this output:
It's not a big problem to have the indentation on each line, but in some cases I would rather have it as is. I want the output to be the same as when running in a single package. If I output JSON data, then I can't just copy paste. |
We generally like to avoid additional miniature options unless really necessary. I'm thinking, if we replace the pipe character with a space, we would keep most of the benefits while also allowing easier use of the output. The only drawback here is backward compatibility but I think the change is minor enough. If that change ends up being insufficient, we could revisit... |
Description
This adds an argument,
--name-prefix
, that removes the prefix on each line, and only prints the package name before each package is run.