This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a3bd57  rename -s/—slient to -q/—quiet (#68)
0a3bd57 is described below

commit 0a3bd5771c298cfbb6ec2c49406dc440ccdb647b
Author: Alexander Klimetschek <[email protected]>
AuthorDate: Wed Jul 15 10:16:32 2020 -0700

    rename -s/—slient to -q/—quiet (#68)
---
 README.md    |  2 +-
 index.js     |  8 ++++----
 package.json |  2 +-
 src/log.js   | 10 +++++-----
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/README.md b/README.md
index 54399e8..ff344fc 100644
--- a/README.md
+++ b/README.md
@@ -517,7 +517,7 @@ Agent options:
 
 Options:
   -v, --verbose  Verbose output. Logs activation parameters and result         
  [boolean]
-  -s, --silent   Silent. Only output logs from action container.               
  [boolean]
+  -q, --quiet    Quiet mode. Only output logs from action container.           
  [boolean]
   --version      Show version number                                           
  [boolean]
   -h, --help     Show help                                                     
  [boolean]
 ```
diff --git a/index.js b/index.js
index 108f72a..57ec503 100644
--- a/index.js
+++ b/index.js
@@ -191,10 +191,10 @@ function yargsOptions(yargs) {
         type: "boolean",
         describe: "Verbose output. Logs activation parameters and result"
     });
-    yargs.option("s", {
-        alias: "silent",
+    yargs.option("q", {
+        alias: "quiet",
         type: "boolean",
-        describe: "Silent. Only output logs from action container."
+        describe: "Quiet mode. Only output logs from action container."
     });
     yargs.version(require("./package.json").version);
 }
@@ -292,7 +292,7 @@ async function wskdebug(args, isCommandLine=false) {
         }
 
         log.isVerbose = argv.verbose;
-        log.silent(argv.silent);
+        log.quiet(argv.quiet);
 
         try {
             const dbg = new Debugger(argv);
diff --git a/package.json b/package.json
index f7c8007..f53afc3 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
     },
     "scripts": {
         "pretest": "npm install --no-save ngrok",
-        "test": "WSKDEBUG_SILENT=1 nyc mocha test/**/*.test.js && 
test/install/test-npm-install.sh",
+        "test": "WSKDEBUG_QUIET=1 nyc mocha test/**/*.test.js && 
test/install/test-npm-install.sh",
         "posttest": "eslint .",
         "report-coverage": "nyc report --reporter=json && codecov -f 
coverage/coverage-final.json"
     },
diff --git a/src/log.js b/src/log.js
index 0b5f555..c3c136d 100644
--- a/src/log.js
+++ b/src/log.js
@@ -59,9 +59,9 @@ module.exports = {
 
     isVerbose: false,
 
-    silent: function(silent) {
-        if (silent) {
-            // silent wins
+    quiet: function(quiet) {
+        if (quiet) {
+            // quiet wins
             this.isVerbose = false;
             dbg.disable();
 
@@ -220,6 +220,6 @@ module.exports = {
     isInteractive: spinner.isEnabled
 };
 
-if (process.env.WSKDEBUG_SILENT) {
-    module.exports.silent(true);
+if (process.env.WSKDEBUG_QUIET) {
+    module.exports.quiet(true);
 }

Reply via email to