Revision 4f6a21f6
b/kamaki/cli/__init__.py | ||
---|---|---|
197 | 197 |
_verbose = arguments['verbose'].value |
198 | 198 |
global _colors |
199 | 199 |
_colors = arguments['config'].get('global', 'colors') |
200 |
if _colors != 'on': |
|
201 |
from kamaki.cli.utils import remove_colors |
|
202 |
remove_colors() |
|
200 | 203 |
_silent = arguments['silent'].value |
201 | 204 |
_include = arguments['include'].value |
202 | 205 |
_setup_logging(_silent, _debug, _verbose, _include) |
... | ... | |
259 | 262 |
def _print_subcommands_help(cmd): |
260 | 263 |
printout = {} |
261 | 264 |
for subcmd in cmd.get_subcommands(): |
262 |
printout[subcmd.path.replace('_', ' ')] = subcmd.description |
|
265 |
spec, sep, print_path = subcmd.path.partition('_') |
|
266 |
printout[print_path.replace('_', ' ')] = subcmd.description |
|
263 | 267 |
if printout: |
264 | 268 |
print('\nOptions:\n - - - -') |
265 | 269 |
print_dict(printout) |
b/kamaki/cli/config.py | ||
---|---|---|
55 | 55 |
|
56 | 56 |
DEFAULTS = { |
57 | 57 |
'global': { |
58 |
'colors': 'on',
|
|
58 |
'colors': 'off',
|
|
59 | 59 |
'token': '' |
60 | 60 |
}, |
61 | 61 |
'config': { |
Also available in: Unified diff