XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.58k stars 119 forks source link

Suggestion: Provide a way to force progress logging and color #358

Open scottjasso opened 2 months ago

scottjasso commented 2 months ago

If you run xcodes runtimes install "iOS 17.0" in a terminal, you get nice progress logging output and colors. If you run xcodes runtimes install "iOS 17.0" | cat, you get no output until it finishes. There's a --color option, but it has no effect. (I also tried stdbuf -i0 -o0 -e0 ... with no luck.)

It would be nice to be able to force color + progress logging. We use xcodes runtimes install inside one of our scripts, but unfortunately it's impossible to see the progress and show it to the user.

In addition to --color, I suggest supporting https://force-color.org/ too :)