Don't show command if quiet: true
Don't print the command if quiet option is set to true and no description is given.
This commit is contained in:
parent
d2f76a2593
commit
76ccc53eee
1 changed files with 4 additions and 3 deletions
|
@ -42,10 +42,11 @@ class Shell(dotbot.Plugin):
|
||||||
else:
|
else:
|
||||||
cmd = item
|
cmd = item
|
||||||
msg = None
|
msg = None
|
||||||
if msg is None:
|
if quiet:
|
||||||
self._log.lowinfo(cmd)
|
if msg is not None:
|
||||||
elif quiet:
|
|
||||||
self._log.lowinfo("%s" % msg)
|
self._log.lowinfo("%s" % msg)
|
||||||
|
elif msg is None:
|
||||||
|
self._log.lowinfo(cmd)
|
||||||
else:
|
else:
|
||||||
self._log.lowinfo("%s [%s]" % (msg, cmd))
|
self._log.lowinfo("%s [%s]" % (msg, cmd))
|
||||||
stdout = options.get("stdout", stdout)
|
stdout = options.get("stdout", stdout)
|
||||||
|
|
Loading…
Reference in a new issue