gitea-tea/modules
Norwin bbb287e29e markdown: dont emit ansi sequences when not emitting to tty (#491)
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

Co-authored-by: Norwin <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/491
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: delvh <dev.lh@web.de>
2022-09-14 02:35:15 +08:00
..
config Use latest go-sdk and bump golang to 1.18 (#485) 2022-06-10 22:31:24 +08:00
context Fix running in repos without remote (#472) 2022-03-29 08:01:37 +08:00
git Add tea clone (#411) 2021-10-18 20:09:27 +08:00
interact markdown: dont emit ansi sequences when not emitting to tty (#491) 2022-09-14 02:35:15 +08:00
print markdown: dont emit ansi sequences when not emitting to tty (#491) 2022-09-14 02:35:15 +08:00
task Use latest go-sdk and bump golang to 1.18 (#485) 2022-06-10 22:31:24 +08:00
utils Add tea clone (#411) 2021-10-18 20:09:27 +08:00
workaround Introduce workaround for missing pull head sha (#340) 2021-03-08 03:45:50 +08:00