...
 
Commits (3)
......@@ -55,10 +55,12 @@ def _print_update(data):
for state in states:
hs = hues.huestr(pprint.pformat(state))
# FIXME: Only color if isatty
if state['result']:
if not state['result']:
print(hs.red.colorized, flush=True)
else if state['changes']:
print(hs.green.colorized, flush=True)
else:
print(hs.red.colorized, flush=True)
print(hs.blue.colorized, flush=True)
elif isinstance(ret, list) and len(ret) == 1:
hs = hues.huestr(ret[0])
print(hs.red.colorized, flush=True)
......