criticalmanufacturing / cli

Critical Manufacturing Projects Command Line Tool
https://criticalmanufacturing.github.io/cli/
BSD 3-Clause "New" or "Revised" License
10 stars 23 forks source link

chore(log): double out width if not running on terminal #269

Closed joaoopereira closed 1 year ago

joaoopereira commented 1 year ago

We have scenarios where the cli is running on (as example) AzureDevOps pipelines. In that scenario, the AnsiConsole.Profile.Out.IsTerminal returns false, and the AnsiConsole.Profile.Width defaults to 80, which is a low value and causes unexpected break lines.

An issue is already open on spectreconsole repo: https://github.com/spectreconsole/spectre.console/issues/216