samba-tool visualize: simplify --color-scheme calculations
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 14 Sep 2022 06:23:16 +0000 (18:23 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Sep 2022 05:46:36 +0000 (05:46 +0000)
commita64e6c9639ce9162d615fbb2f1f0349e1bd9720e
treed2b00bedf7c48334347388267f444147d4ba8c08
parent07cbb10dc07381df6409f12ca0b4ecb6911ce495
samba-tool visualize: simplify --color-scheme calculations

If you ask for a --color-scheme, you are implicitly asking for --color.
That was documented in --help, but not followed here.

Now --color=no --color-scheme=ansi will use colour for the graph, but not
for other output. This might be useful when the graph is going to a
different place than everything else (`-o foo.txt > bar.txt`).

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/visualize.py