tparse icon indicating copy to clipboard operation
tparse copied to clipboard

Add color support for `-progress` output

Open mfridman opened this issue 2 years ago • 0 comments

Picking up from https://github.com/mfridman/tparse/pull/95#issuecomment-1580742021, let's add color support to the package -progress output.

Outside the scope of this PR, but as we flush out the functionality of -progress, we should also consider adding artificial output periodically.

From https://github.com/mfridman/tparse/issues/86#issuecomment-1566407250:

For these cases, I think a solution may be to add a -periodic flag which can be set to an arbitrary duration 1m and it'll guarantee to output something to inform CI that tests are still running. Maybe this could default to 1m when -progress is true. This is similar to what https://github.com/hashicorp/terraform/pull/6163 does.

Instead of another flag, maybe -progress could just output something on an interval by default.

mfridman avatar Jun 08 '23 13:06 mfridman