markdown: dont emit ansi sequences when not emitting to tty #491

Merged
noerw merged 3 commits from noerw/tea:markdown-noansi into main 2022-09-13 18:35:16 +00:00
Member

Allows generating a plain text version of an issue (i.e. without colors and other terminal formatting) when storing stdout in a file.

tea issue --comments 1 > issue1.txt

IsInteractive() had to be moved to avoid a recursive import chain.


In the future, it would be nice to also respect the --output flag. This flag is currently designed for tabular output, but we could add more supported values like markdown ansi, plain to it

Allows generating a plain text version of an issue (i.e. without colors and other terminal formatting) when storing stdout in a file. ``` tea issue --comments 1 > issue1.txt ``` `IsInteractive()` had to be moved to avoid a recursive import chain. --- In the future, it would be nice to also respect the `--output` flag. This flag is currently designed for tabular output, but we could add more supported values like `markdown` `ansi`, `plain` to it
noerw added 1 commit 2022-07-30 13:21:34 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
9a084d21ab
markdown: dont emit ansi sequences when not emitting to tty
noerw added the
kind
enhancement
label 2022-07-30 13:21:39 +00:00
6543 approved these changes 2022-07-30 15:58:13 +00:00
noerw added 1 commit 2022-09-13 16:56:44 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
7d2e64ccb3
Merge branch 'main' into markdown-noansi
6543 added this to the v0.9.0 milestone 2022-09-13 18:02:13 +00:00
6543 added 1 commit 2022-09-13 18:02:22 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
dfefacbc4c
Merge branch 'main' into markdown-noansi
delvh approved these changes 2022-09-13 18:10:21 +00:00
noerw merged commit bbb287e29e into main 2022-09-13 18:35:16 +00:00
noerw deleted branch markdown-noansi 2022-09-13 18:35:16 +00:00
Sign in to join this conversation.
No description provided.