Tags: markus-wa/cq
Tags
Autodetect color (#20) * fix: use keyword for default value Parsing doesn't happen on default values, so we must provide the correct format default value. * feat: autodetect color We can now automatically detect if we should use color when printing. Mostly color will be set to off when cq is used in a pipe, because a console is not available. This can be forced on with the command-line flags. * chore: bump org.clojure/tools.cli to the latest version
feat: pretty printing without color (#16) Introduce a new flag `--color` that decides whether colors are printed while pretty-printing is on. Valid values are `on`, `off` and `auto`, which is the default. In the future, there is the possibility of autodetecting from TTY settings, but at the time of writing `auto` means `on`. The flags `-c` and `-C` can also be used to toggle color on/off respectively. NB: Currently, only applies to EDN printing. Additionally tests the pretty-printing with multiple line case, and ANSI color escape sequences.
PreviousNext