xcbeautify icon indicating copy to clipboard operation
xcbeautify copied to clipboard

Nested xcbeautifies

Open pepicrft opened this issue 6 months ago • 1 comments

Tuist uses xcbeautify in the test command, which uses xcodebuild to run tests. We have acceptance tests that run tuist commands (very meta), for example the test command. This leads to a logging pipeline like this:

xcbeautify > xcodebuild > xcbeautify > xcodebuild

Because the inner xcodebuild logs are passed through xcbeautify, the second xcbeautify swallows them and makes debugging tests impossible. A solution for that consists of disabling the second xcbeautify:

xcbeautify > xcodebuild  > xcodebuild

However, that leads to the logs of both mixed as if they belonged to the same process.

What do you think if we add support for including prefixes in xcodebuild that xcbeautify would preserve? For example:

xcbeautify --prefix [foo]

pepicrft avatar Dec 05 '23 09:12 pepicrft