-
-
Notifications
You must be signed in to change notification settings - Fork 236
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 auto colors functionality #296
Conversation
c9739e3
to
2118d3f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
2118d3f
to
fa95ba7
Compare
@eliasm307 Thanks for this pull request! I've now rebased it on the latest state of the main branch. I've only made the necessary changes required for TypeScript & ESM and otherwise kept the original logic the same. Let's see if @gustavohenke and / or me can find the time to review this pull request soon. |
fa95ba7
to
77ace98
Compare
c259335
to
f57afd7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall thought that doesn't belong to one specific line:
What do you @eliasm307 and @paescuj think of --prefix-colors
taking a special keyword auto
that triggers this behaviour? So that this doesn't require implementing/specifying --color
.
E.g. concurrently -c auto,red,auto npm:lint npm:test npm:build
generates an auto colour for npm:lint
, red for npm:test
, and another auto colour for npm:build
(but excluding red)
@gustavohenke thats an interesting suggestion, I think it could fit some use cases where a user wants partial control of the process colours. However, for me the motivation for this was that I didn't really mind about the colours, as long as they are different. If other users also don't mind and they are trying to use this to spawn several processes then the command ends up with noise like "auto,auto,auto..." which isn't a good experience imo. How would you feel about supporting both? So one option of all auto colours or being able to specify colours per process with an option to delegate? |
We could rely on the current behaviour of the last input colour getting repeated when there are less colours than commands. So a single Also sorry for reviewing this harshly, I didn't notice it was from a bunch of months back! 😱 |
I've already considered this too. |
@gustavohenke Hey, I didnt think it was harsh, it was good feedback, thanks for taking the time to review it 🙂 |
bc1e427
to
efa6cf1
Compare
5bdf259
to
8200972
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @eliasm307 for your great work here!
It looks good to me 👍
I just did some small enhancements concerning docs & comments and a little cleanup.
b9063e6
to
b549681
Compare
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
b549681
to
f3c1fcf
Compare
This reverts commit f3c1fcf.
…Colors' I'm neither happy with extending expect nor with having expect in a external function, so I'm using 'it.each' to solve this
What do you think @gustavohenke? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦 I had reviewed just hadn't submitted
Published in v7.5.0! |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [concurrently](https://github.com/open-cli-tools/concurrently) | [`^7.4.0` -> `^7.5.0`](https://renovatebot.com/diffs/npm/concurrently/7.4.0/7.5.0) | [![age](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/compatibility-slim/7.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/confidence-slim/7.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>open-cli-tools/concurrently</summary> ### [`v7.5.0`](https://github.com/open-cli-tools/concurrently/releases/tag/v7.5.0) [Compare Source](https://github.com/open-cli-tools/concurrently/compare/v7.4.0...v7.5.0) #### What's Changed - Add auto colors functionality by [@​eliasm307](https://github.com/eliasm307), [@​paescuj](https://github.com/paescuj), [@​gustavohenke](https://github.com/gustavohenke) in [https://github.com/open-cli-tools/concurrently/pull/296](https://github.com/open-cli-tools/concurrently/pull/296) - Fix `onFinish` signature when using exactOptionalPropertyTypes by [@​Baune8D](https://github.com/Baune8D) in [https://github.com/open-cli-tools/concurrently/pull/372](https://github.com/open-cli-tools/concurrently/pull/372) **Full Changelog**: open-cli-tools/concurrently@v7.4.0...v7.5.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/fwouts/previewjs). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDEuNyIsInVwZGF0ZWRJblZlciI6IjMyLjI0MS43In0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [concurrently](https://github.com/open-cli-tools/concurrently) | [`7.4.0` -> `7.5.0`](https://renovatebot.com/diffs/npm/concurrently/7.4.0/7.5.0) | [![age](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/compatibility-slim/7.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/confidence-slim/7.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>open-cli-tools/concurrently</summary> ### [`v7.5.0`](https://github.com/open-cli-tools/concurrently/releases/tag/v7.5.0) [Compare Source](https://github.com/open-cli-tools/concurrently/compare/v7.4.0...v7.5.0) #### What's Changed - Add auto colors functionality by [@​eliasm307](https://github.com/eliasm307), [@​paescuj](https://github.com/paescuj), [@​gustavohenke](https://github.com/gustavohenke) in [https://github.com/open-cli-tools/concurrently/pull/296](https://github.com/open-cli-tools/concurrently/pull/296) - Fix `onFinish` signature when using exactOptionalPropertyTypes by [@​Baune8D](https://github.com/Baune8D) in [https://github.com/open-cli-tools/concurrently/pull/372](https://github.com/open-cli-tools/concurrently/pull/372) **Full Changelog**: open-cli-tools/concurrently@v7.4.0...v7.5.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/defenseunicorns/zarf). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDEuNyIsInVwZGF0ZWRJblZlciI6IjMyLjI0MS43In0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [concurrently](https://github.com/open-cli-tools/concurrently) | [`7.4.0` -> `7.5.0`](https://renovatebot.com/diffs/npm/concurrently/7.4.0/7.5.0) | [![age](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/compatibility-slim/7.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/concurrently/7.5.0/confidence-slim/7.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>open-cli-tools/concurrently</summary> ### [`v7.5.0`](https://github.com/open-cli-tools/concurrently/releases/tag/v7.5.0) [Compare Source](https://github.com/open-cli-tools/concurrently/compare/v7.4.0...v7.5.0) #### What's Changed - Add auto colors functionality by [@​eliasm307](https://github.com/eliasm307), [@​paescuj](https://github.com/paescuj), [@​gustavohenke](https://github.com/gustavohenke) in [https://github.com/open-cli-tools/concurrently/pull/296](https://github.com/open-cli-tools/concurrently/pull/296) - Fix `onFinish` signature when using exactOptionalPropertyTypes by [@​Baune8D](https://github.com/Baune8D) in [https://github.com/open-cli-tools/concurrently/pull/372](https://github.com/open-cli-tools/concurrently/pull/372) **Full Changelog**: open-cli-tools/concurrently@v7.4.0...v7.5.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/defenseunicorns/zarf). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDEuNyIsInVwZGF0ZWRJblZlciI6IjMyLjI0MS43In0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Resolves #279