You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/03/28 07:45:56 UTC
[cordova-plugman] branch master updated: Fix platform_name option
(#112)
This is an automated email from the ASF dual-hosted git repository.
raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugman.git
The following commit(s) were added to refs/heads/master by this push:
new c268cac Fix platform_name option (#112)
c268cac is described below
commit c268cacdfd7bd0b6088abea2f9da68fbfc3b8702
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Thu Mar 28 08:45:50 2019 +0100
Fix platform_name option (#112)
* Get known platforms from cordova-lib
* Whitelist 'platform_name' option for 'plugman platform'
---
main.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/main.js b/main.js
index fadb1a1..bd73821 100755
--- a/main.js
+++ b/main.js
@@ -28,12 +28,13 @@ const nopt = require('nopt');
const pkg = require('./package');
const help = require('./src/help');
const plugman = require('./plugman');
+const { cordova_platforms } = require('cordova-lib');
+
+const knownPlatforms = Object.keys(cordova_platforms);
const known_opts = {
- platform: [
- 'ios', 'osx', 'android', 'amazon-fireos', 'blackberry10',
- 'wp8', 'windows8', 'windows', 'firefoxos'
- ],
+ platform: knownPlatforms,
+ platform_name: knownPlatforms,
project: path,
plugin: [String, path, url, Array],
version: String,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org