You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2023/05/09 03:35:05 UTC
[cordova-cli] branch master updated: feat!(run): call platform api to list targets (#611)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 32a2025 feat!(run): call platform api to list targets (#611)
32a2025 is described below
commit 32a202595bade09e105e92a70c3d71698817c099
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Tue May 9 12:34:59 2023 +0900
feat!(run): call platform api to list targets (#611)
---
src/cli.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/cli.js b/src/cli.js
index 0d5aea9..735ed14 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -355,9 +355,7 @@ 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.targets) {
- return cordova.targets.call(null, opts);
- }
+
return cordova[cmd].call(null, opts);
} else if (cmd === 'requirements') {
// All options without dashes are assumed to be platform names
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org