Commit 4f6a21f6 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Colors are off by default

parent d486baec
......@@ -197,6 +197,9 @@ def _init_session(arguments):
_verbose = arguments['verbose'].value
global _colors
_colors = arguments['config'].get('global', 'colors')
if _colors != 'on':
from kamaki.cli.utils import remove_colors
remove_colors()
_silent = arguments['silent'].value
_include = arguments['include'].value
_setup_logging(_silent, _debug, _verbose, _include)
......@@ -259,7 +262,8 @@ def _groups_help(arguments):
def _print_subcommands_help(cmd):
printout = {}
for subcmd in cmd.get_subcommands():
printout[subcmd.path.replace('_', ' ')] = subcmd.description
spec, sep, print_path = subcmd.path.partition('_')
printout[print_path.replace('_', ' ')] = subcmd.description
if printout:
print('\nOptions:\n - - - -')
print_dict(printout)
......
......@@ -55,7 +55,7 @@ HEADER = """
DEFAULTS = {
'global': {
'colors': 'on',
'colors': 'off',
'token': ''
},
'config': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment