Format listed issues plainly when STDIN is not a TTY

When calling pit from other programs or as part of a pipe, the display
style typically used to format listed issues contains a lot of unwanted
output (ANSI escape code, headings, etc.). Now when STDIN is not a TTY,
a plain and consistently formatted version of the issues is listed
without any additional formatting, one issue per line of output.
This commit is contained in:
2024-01-01 12:47:43 -06:00
parent 8cf0bf5d98
commit d04797460c
3 changed files with 43 additions and 5 deletions

View File

@ -1,4 +1,4 @@
const PIT_VERSION* = "4.24.1"
const PIT_VERSION* = "4.25.0"
const USAGE* = """Usage:
pit ( new | add) <summary> [<state>] [options]