aboutsummaryrefslogtreecommitdiff
path: root/man/krino.1
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 11:05:13 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 11:05:13 +0200
commitadc3410395771609d2db5ee5ae2b9da71115c5ca (patch)
tree453def41e18f607332be1088920f9d0c563603a3 /man/krino.1
parent0468ce38470aa3ae8092b92d4f77e72d25dfa108 (diff)
downloadkrino-adc3410395771609d2db5ee5ae2b9da71115c5ca.tar.gz
krino-adc3410395771609d2db5ee5ae2b9da71115c5ca.zip
krino: coloured output, and --no-color
One palette type styles the plan table, warnings, headers, outcome counts, prompt keys, undo's refused steps and krino log's (undone), from the 16-colour ANSI palette plus bold and faint only. Widths are measured on the plain text, so columns line up; with colour off the output is unchanged. --no-color works before or after any subcommand, as NO_COLOR does. The two search-and-replace colourings are gone.
Diffstat (limited to 'man/krino.1')
-rw-r--r--man/krino.129
1 files changed, 25 insertions, 4 deletions
diff --git a/man/krino.1 b/man/krino.1
index 627a2ee..9e2d274 100644
--- a/man/krino.1
+++ b/man/krino.1
@@ -101,6 +101,28 @@ Use
.Ar file
in place of
.Pa $XDG_CONFIG_HOME/krino/krino.conf .
+.It Fl -no-color
+Never colour the output, as when
+.Ev NO_COLOR
+is set.
+Without it,
+.Nm
+colours its output only when writing to a terminal, using the terminal's
+own 16-colour palette: directory headers bold;
+.Ic copy ,
+.Ic move
+and
+.Ic rename
+green;
+.Ic trash
+yellow;
+.Sy DELETE permanently
+and a refused undo step bold red; skipped steps and match reasons faint;
+rule names blue; warnings yellow; the applied count green and a failed count
+red; prompt keys bold; and
+.Ic krino log Ns 's
+.Dq (undone)
+faint.
.It Fl h , Fl -help
Print usage and exit.
.It Fl -version
@@ -278,10 +300,9 @@ Never used for
.Fl -json
output.
.It Ev NO_COLOR
-When set, disables the ANSI colour
-.Nm
-otherwise uses on a terminal for a permanent delete and a refused undo
-step.
+When set, disables colour, as
+.Fl -no-color
+does.
.El
.Sh FILES
.Bl -tag -width Ds