tuist icon indicating copy to clipboard operation
tuist copied to clipboard

Report all options/environment variables that are being considering in `tuist generate`

Open taquitos opened this issue 2 years ago • 3 comments

What problem or need do you have?

It would also be nice to have a report of all accepted and used env vars. I'm coming from fastlane where I could do all this easily 😅

This is piggy-backing on Add script/generate logging support for user projects

Potential solution

I'd love output that could be sorta like:

+---------------------------------------------------------------------------------------+
|                       Discovered environment variables                                |
+------------------------+--------------------------------------------------------------+
| Variable               | Description                                                  |
+------------------------+--------------------------------------------------------------+
| TUIST_WATCH            | Adds Watch targets to the project.                           | 
+------------------------+--------------------------------------------------------------+

macOS version

14

Tuist version

3.x

Xcode version

15.x

taquitos avatar Feb 05 '24 18:02 taquitos

I think this is an amazing idea. Would you like to see it by default @taquitos? Or do you think it's more sensible to do it in an opt-in fashion, for example when passing the --verbose flag?

pepicrft avatar Feb 06 '24 17:02 pepicrft

For me, I'd love to see it by default if there is something worth showing. My thinking is that if you don't mess with env vars or tinker with settings, the vanilla experience of what we have now is great. But, if you start adding anything or customizing it and could get confused, it would be informative. For example- If you start writing aliases like: alias tgen='TUIST_WATCH=1 TUIST_PERF_FLAGS=0 tuist generate -x' And you forgot what it means, it could be super helpful as a reminder.

taquitos avatar Feb 06 '24 18:02 taquitos

Thanks for the context @taquitos. I think we can add a summary at the top with the most relevant information.

pepicrft avatar Feb 06 '24 18:02 pepicrft