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
87565d2c
Commit
87565d2c
authored
Nov 14, 2012
by
Stavros Sachtouris
Browse files
Colors off if stdout is not a tty
parent
f551841a
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/__init__.py
View file @
87565d2c
...
...
@@ -197,7 +197,7 @@ def _init_session(arguments):
_verbose
=
arguments
[
'verbose'
].
value
global
_colors
_colors
=
arguments
[
'config'
].
get
(
'global'
,
'colors'
)
if
_colors
!
=
'on'
:
if
not
(
stdout
.
isatty
()
and
_colors
=
=
'on'
)
:
from
kamaki.cli.utils
import
remove_colors
remove_colors
()
_silent
=
arguments
[
'silent'
].
value
...
...
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