You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/06/07 00:02:20 UTC

cordova-cli git commit: CB-11349 passing --fetch to create

Repository: cordova-cli
Updated Branches:
  refs/heads/master 189f41a40 -> 486bdab5c


CB-11349 passing --fetch to create

 This closes #256


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

Branch: refs/heads/master
Commit: 486bdab5c0a5f21de48ec989e76984663f561de9
Parents: 189f41a
Author: carynbear <ca...@berkeley.edu>
Authored: Thu Jun 2 11:17:28 2016 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Mon Jun 6 17:02:11 2016 -0700

----------------------------------------------------------------------
 spec/cli.spec.js | 2 +-
 src/cli.js       | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/486bdab5/spec/cli.spec.js
----------------------------------------------------------------------
diff --git a/spec/cli.spec.js b/spec/cli.spec.js
index 50240e7..6956609 100644
--- a/spec/cli.spec.js
+++ b/spec/cli.spec.js
@@ -140,7 +140,7 @@ describe("cordova cli", function () {
 
         it("calls cordova raw create", function (done) {
             cli(["node", "cordova", "create", "a", "b", "c", "--link-to", "c:\\personalWWW"], function () {
-                expect(cordova.raw.create).toHaveBeenCalledWith("a", "b", "c", jasmine.any(Object));
+                expect(cordova.raw.create).toHaveBeenCalledWith("a", "b", "c", jasmine.any(Object), false);
                 done();
             });
         });

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/486bdab5/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 8fda3d9..06b11d4 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -464,12 +464,11 @@ function cli(inputArgs) {
             cfg.lib = cfg.lib || {};
             cfg.lib.www = wwwCfg;
         }
-
-        // create(dir, id, name, cfg)
         return cordova.raw.create( undashed[1]  // dir to create the project in
             , undashed[2]  // App id
             , undashed[3]  // App name
             , cfg
+            , args['fetch'] != undefined
         );
     }
 }


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