You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/08/03 15:26:24 UTC

[GitHub] janpio closed pull request #57: CB-14252: Allow to send --silent arg to run command to disable output

janpio closed pull request #57: CB-14252: Allow to send --silent arg to run command to disable output
URL: https://github.com/apache/cordova-browser/pull/57
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/bin/template/cordova/lib/run.js b/bin/template/cordova/lib/run.js
index fc58630..90a58c5 100644
--- a/bin/template/cordova/lib/run.js
+++ b/bin/template/cordova/lib/run.js
@@ -28,6 +28,7 @@ module.exports.run = function (args) {
     // defaults
     args.port = args.port || 8000;
     args.target = args.target || 'default'; // make default the system browser
+    args.noLogOutput = args.silent || false;
 
     var wwwPath = path.join(__dirname, '../../www');
     var manifestFilePath = path.resolve(path.join(wwwPath, 'manifest.json'));
@@ -45,7 +46,7 @@ module.exports.run = function (args) {
     }
 
     var server = cordovaServe();
-    server.servePlatform('browser', {port: args.port, noServerInfo: true})
+    server.servePlatform('browser', {port: args.port, noServerInfo: true, noLogOutput: args.noLogOutput})
         .then(function () {
             if (!startPage) {
                 // failing all else, set the default


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org