rename -s/—slient to -q/—quiet (#68)
diff --git a/README.md b/README.md
index 54399e8..ff344fc 100644
--- a/README.md
+++ b/README.md
@@ -517,7 +517,7 @@
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 @@
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 @@
}
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 @@
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 @@
isInteractive: spinner.isEnabled
};
-if (process.env.WSKDEBUG_SILENT) {
- module.exports.silent(true);
+if (process.env.WSKDEBUG_QUIET) {
+ module.exports.quiet(true);
}