Skip to content

Commit

Permalink
CB-12901: removed .raw from cordova-lib calls
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengill authored and purplecabbage committed Jun 20, 2017
1 parent 3045614 commit 0a42092
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions doc/config.txt
@@ -1,16 +1,16 @@
Synopsis

cordova-cli config <command> [options]


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

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

Syntax
cordova-cli config set <key> <value> ....... cordova config set autosave true
Expand Down
14 changes: 7 additions & 7 deletions src/cli.js
Expand Up @@ -382,16 +382,16 @@ function cli(inputArgs) {
// Pass nopt-parsed args to PlatformApi through opts.options
opts.options = args;
opts.options.argv = unparsedArgs;
if (cmd === 'run' && args.list && cordova.raw.targets) {
return cordova.raw.targets.call(null, opts);
if (cmd === 'run' && args.list && cordova.targets) {
return cordova.targets.call(null, opts);
}
return cordova.raw[cmd].call(null, opts);
return cordova[cmd].call(null, opts);

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

return cordova.raw[cmd].call(null, opts.platforms)
return cordova[cmd].call(null, opts.platforms)
.then(function(platformChecks) {

var someChecksFailed = Object.keys(platformChecks).map(function(platformName) {
Expand Down Expand Up @@ -425,7 +425,7 @@ function cli(inputArgs) {
});
} else if (cmd === 'serve') {
var port = undashed[1];
return cordova.raw.serve(port);
return cordova.serve(port);
} else if (cmd === 'create') {
return create(undashed,args);
} else if (cmd === 'config') {
Expand Down Expand Up @@ -481,7 +481,7 @@ function cli(inputArgs) {
, shrinkwrap: args.shrinkwrap || false
, force: args.force || false
};
return cordova.raw[cmd](subcommand, targets, download_opts);
return cordova[cmd](subcommand, targets, download_opts);
}
}

Expand Down Expand Up @@ -528,7 +528,7 @@ function create(undashed, args) {
cfg.lib = cfg.lib || {};
cfg.lib.www = wwwCfg;
}
return cordova.raw.create( undashed[1] // dir to create the project in
return cordova.create( undashed[1] // dir to create the project in
, undashed[2] // App id
, undashed[3] // App name
, cfg
Expand Down

0 comments on commit 0a42092

Please sign in to comment.