From ad61994c6c21cdccd122f79fb628ae2d0c9e01f2 Mon Sep 17 00:00:00 2001 From: Vito Giarrusso Date: Mon, 4 Sep 2017 18:17:30 +1000 Subject: [PATCH] Rename 'suppressShellCmd' option to 'quiet' --- README.md | 4 ++-- plugins/shell.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f2d99d5..9424674 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/plugins/shell.py b/plugins/shell.py index e0999ed..50de049 100644 --- a/plugins/shell.py +++ b/plugins/shell.py @@ -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