cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject [02/15] git commit: added verbose mode initialization to set up event handlers
Date Thu, 21 Aug 2014 18:23:03 GMT
added verbose mode initialization to set up event handlers


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/00926215
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/00926215
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/00926215

Branch: refs/heads/master
Commit: 009262159dc72dc7d719575a8295c31953b9ed47
Parents: 68d0d9f
Author: Lorin Beer <lorin.beer@gmail.com>
Authored: Fri Jun 13 09:53:31 2014 -0700
Committer: Lorin Beer <lorin.beer@gmail.com>
Committed: Wed Aug 20 11:15:43 2014 -0700

----------------------------------------------------------------------
 src/cli.js | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/00926215/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 363cb39..7aea811 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -48,6 +48,16 @@ function init() {
     }
 };
 
+// Add handlers for verbose logging.
+function initVerboseHandlers() {
+    if (args.verbose) {
+        cordova.on('verbose', console.log);
+        plugman.on('verbose', console.log);
+    }
+
+};
+
+
 module.exports = cli
 function cli(inputArgs) {
     // When changing command line arguments, update doc/help.txt accordingly.


Mime
View raw message