Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
4f6a21f6
Commit
4f6a21f6
authored
Nov 14, 2012
by
Stavros Sachtouris
Browse files
Colors are off by default
parent
d486baec
Changes
2
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/__init__.py
View file @
4f6a21f6
...
...
@@ -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
(
'
\n
Options:
\n
- - - -'
)
print_dict
(
printout
)
...
...
kamaki/cli/config.py
View file @
4f6a21f6
...
...
@@ -55,7 +55,7 @@ HEADER = """
DEFAULTS
=
{
'global'
:
{
'colors'
:
'o
n
'
,
'colors'
:
'o
ff
'
,
'token'
:
''
},
'config'
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment