Report all options/environment variables that are being considering in `tuist generate`
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
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?
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.
Thanks for the context @taquitos. I think we can add a summary at the top with the most relevant information.