Revision 67cea04c kamaki/cli/__init__.py

b/kamaki/cli/__init__.py
53 53

  
54 54
#from kamaki import clients
55 55
from .errors import CLIError, CLISyntaxError, CLICmdIncompleteError, CLICmdSpecError
56
from .config import Config #TO BE REMOVED
57
from .utils import bold, magenta, red, yellow, print_list, print_dict
56
from .utils import bold, magenta, red, yellow, print_list, print_dict, remove_colors
58 57
from .command_tree import CommandTree
59 58
from .argument import _arguments, parse_known_args
60 59
from .history import History
......
270 269
		exe = basename(argv[0])
271 270
		parser = _init_parser(exe)
272 271
		parsed, unparsed = parse_known_args(parser, _arguments)
272
		_colors = _arguments['config'].get('global', 'colors')
273
		if _colors!='on':
274
			remove_colors()
273 275
		_history = History(_arguments['config'].get('history', 'file'))
274 276
		_history.add(' '.join([exe]+argv[1:]))
275 277
		_debug = _arguments['debug'].value

Also available in: Unified diff