Skip to content

Commit 0a42092

Browse files
stevengillpurplecabbage
authored andcommitted
CB-12901: removed .raw from cordova-lib calls
1 parent 3045614 commit 0a42092

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

doc/config.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Synopsis
22

33
cordova-cli config <command> [options]
4-
4+
55

66
The config command can be used to set, get, delete, edit, and list global cordova options.
77

88
Options
9-
--set <key> <value> .............................. Sets the config key to the value.If value is omitted, then it sets it to "true".
10-
--get <key> ...................................... Echo the config value to stdout.
11-
--delete <key> ................................... Deletes the key from all configuration files.
12-
--edit ........................................... Opens the config file in an editor.
13-
--ls ............................................. Lists contents of config file.
9+
--set <key> <value> ... Sets the config key to the value. If value is omitted, then it sets it to "true".
10+
--get <key> ........... Echo the config value to stdout.
11+
--delete <key> ........ Deletes the key from all configuration files.
12+
--edit ................ Opens the config file in an editor.
13+
--ls .................. Lists contents of config file.
1414

1515
Syntax
1616
cordova-cli config set <key> <value> ....... cordova config set autosave true

src/cli.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,16 +382,16 @@ function cli(inputArgs) {
382382
// Pass nopt-parsed args to PlatformApi through opts.options
383383
opts.options = args;
384384
opts.options.argv = unparsedArgs;
385-
if (cmd === 'run' && args.list && cordova.raw.targets) {
386-
return cordova.raw.targets.call(null, opts);
385+
if (cmd === 'run' && args.list && cordova.targets) {
386+
return cordova.targets.call(null, opts);
387387
}
388-
return cordova.raw[cmd].call(null, opts);
388+
return cordova[cmd].call(null, opts);
389389

390390
} else if (cmd === 'requirements') {
391391
// All options without dashes are assumed to be platform names
392392
opts.platforms = undashed.slice(1);
393393

394-
return cordova.raw[cmd].call(null, opts.platforms)
394+
return cordova[cmd].call(null, opts.platforms)
395395
.then(function(platformChecks) {
396396

397397
var someChecksFailed = Object.keys(platformChecks).map(function(platformName) {
@@ -425,7 +425,7 @@ function cli(inputArgs) {
425425
});
426426
} else if (cmd === 'serve') {
427427
var port = undashed[1];
428-
return cordova.raw.serve(port);
428+
return cordova.serve(port);
429429
} else if (cmd === 'create') {
430430
return create(undashed,args);
431431
} else if (cmd === 'config') {
@@ -481,7 +481,7 @@ function cli(inputArgs) {
481481
, shrinkwrap: args.shrinkwrap || false
482482
, force: args.force || false
483483
};
484-
return cordova.raw[cmd](subcommand, targets, download_opts);
484+
return cordova[cmd](subcommand, targets, download_opts);
485485
}
486486
}
487487

@@ -528,7 +528,7 @@ function create(undashed, args) {
528528
cfg.lib = cfg.lib || {};
529529
cfg.lib.www = wwwCfg;
530530
}
531-
return cordova.raw.create( undashed[1] // dir to create the project in
531+
return cordova.create( undashed[1] // dir to create the project in
532532
, undashed[2] // App id
533533
, undashed[3] // App name
534534
, cfg

0 commit comments

Comments
 (0)