Rename 'suppressShellCmd' option to 'quiet'
This commit is contained in:
parent
fe2a36ca9d
commit
ad61994c6c
|
@ -252,7 +252,7 @@ shell command and the second is an optional human-readable description.
|
||||||
Shell commands support an extended syntax as well, which provides more
|
Shell commands support an extended syntax as well, which provides more
|
||||||
fine-grained control. A command can be specified as a dictionary that contains
|
fine-grained control. A command can be specified as a dictionary that contains
|
||||||
the command to be run, a description, whether to suppress outputting the
|
the command to be run, a description, whether to suppress outputting the
|
||||||
command in the display via `suppressShellCmd`, and whether `stdin`, `stdout`,
|
command in the display via `quiet`, and whether `stdin`, `stdout`,
|
||||||
and `stderr` are enabled. In this syntax, all keys are optional except for the
|
and `stderr` are enabled. In this syntax, all keys are optional except for the
|
||||||
command itself.
|
command itself.
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ command itself.
|
||||||
-
|
-
|
||||||
command: read fail
|
command: read fail
|
||||||
stderr: true
|
stderr: true
|
||||||
suppressShellCmd: true
|
quiet: true
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Shell(dotbot.Plugin):
|
||||||
stdout = None
|
stdout = None
|
||||||
if defaults.get('stderr', False) == True:
|
if defaults.get('stderr', False) == True:
|
||||||
stderr = None
|
stderr = None
|
||||||
if defaults.get('suppressShellCmd', False) == True:
|
if defaults.get('quiet', False) == True:
|
||||||
suppress_shell_cmd = True
|
suppress_shell_cmd = True
|
||||||
if isinstance(item, dict):
|
if isinstance(item, dict):
|
||||||
cmd = item['command']
|
cmd = item['command']
|
||||||
|
@ -41,8 +41,8 @@ class Shell(dotbot.Plugin):
|
||||||
stdout = None if item['stdout'] == True else devnull
|
stdout = None if item['stdout'] == True else devnull
|
||||||
if 'stderr' in item:
|
if 'stderr' in item:
|
||||||
stderr = None if item['stderr'] == True else devnull
|
stderr = None if item['stderr'] == True else devnull
|
||||||
if 'suppressShellCmd' in item:
|
if 'quiet' in item:
|
||||||
suppress_shell_cmd = True if item['suppressShellCmd'] == True else False
|
suppress_shell_cmd = True if item['quiet'] == True else False
|
||||||
elif isinstance(item, list):
|
elif isinstance(item, list):
|
||||||
cmd = item[0]
|
cmd = item[0]
|
||||||
msg = item[1] if len(item) > 1 else None
|
msg = item[1] if len(item) > 1 else None
|
||||||
|
|
Loading…
Reference in a new issue