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
|
||||
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
|
||||
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
|
||||
command itself.
|
||||
|
||||
|
@ -270,7 +270,7 @@ command itself.
|
|||
-
|
||||
command: read fail
|
||||
stderr: true
|
||||
suppressShellCmd: true
|
||||
quiet: true
|
||||
```
|
||||
|
||||
### Clean
|
||||
|
|
|
@ -30,7 +30,7 @@ class Shell(dotbot.Plugin):
|
|||
stdout = None
|
||||
if defaults.get('stderr', False) == True:
|
||||
stderr = None
|
||||
if defaults.get('suppressShellCmd', False) == True:
|
||||
if defaults.get('quiet', False) == True:
|
||||
suppress_shell_cmd = True
|
||||
if isinstance(item, dict):
|
||||
cmd = item['command']
|
||||
|
@ -41,8 +41,8 @@ class Shell(dotbot.Plugin):
|
|||
stdout = None if item['stdout'] == True else devnull
|
||||
if 'stderr' in item:
|
||||
stderr = None if item['stderr'] == True else devnull
|
||||
if 'suppressShellCmd' in item:
|
||||
suppress_shell_cmd = True if item['suppressShellCmd'] == True else False
|
||||
if 'quiet' in item:
|
||||
suppress_shell_cmd = True if item['quiet'] == True else False
|
||||
elif isinstance(item, list):
|
||||
cmd = item[0]
|
||||
msg = item[1] if len(item) > 1 else None
|
||||
|
|
Loading…
Reference in a new issue