mirror of
1
0
Fork 0

dont show command if quiet: true

dont print the command if quiet option is
set to true and description is None
This commit is contained in:
Arbaaz Shafiq 2022-10-26 19:30:34 +05:30
parent d2f76a2593
commit 15af48fcf8
No known key found for this signature in database
GPG Key ID: 4BF32BDD8D96A892
1 changed files with 4 additions and 3 deletions

View File

@ -42,10 +42,11 @@ class Shell(dotbot.Plugin):
else:
cmd = item
msg = None
if msg is None:
if quiet:
if msg is not None:
self._log.lowinfo("%s" % msg)
elif msg is None:
self._log.lowinfo(cmd)
elif quiet:
self._log.lowinfo("%s" % msg)
else:
self._log.lowinfo("%s [%s]" % (msg, cmd))
stdout = options.get("stdout", stdout)