You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2017/04/26 01:04:25 UTC

[30/35] cordova-coho git commit: when manually selecting plugins to release, use the choices prompt for easier selection.

when manually selecting plugins to release, use the choices prompt for easier selection.


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

Branch: refs/heads/master
Commit: e88653f34360651a3d6697d5dac06f894b7b1d91
Parents: 411547f
Author: filmaj <ma...@gmail.com>
Authored: Wed Mar 1 16:32:01 2017 -0800
Committer: filmaj <ma...@gmail.com>
Committed: Tue Apr 25 17:28:08 2017 -0700

----------------------------------------------------------------------
 src/plugin-release.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/e88653f3/src/plugin-release.js
----------------------------------------------------------------------
diff --git a/src/plugin-release.js b/src/plugin-release.js
index 022eaee..fa5b355 100644
--- a/src/plugin-release.js
+++ b/src/plugin-release.js
@@ -296,11 +296,12 @@ function *interactive_plugins_release() {
                 return plugins_to_release;
             } else {
                 return inquirer.prompt({
-                    type: 'input',
+                    type: 'checkbox',
                     name: 'plugins_list',
-                    message: 'Please enter the exact names of the plugin repositories you want to release, manually, with a space separating each plugin name'
+                    message: 'Select the plugins you want to release:',
+                    choices: plugin_repos.map(function(p) { return p.repoName; }).filter(function(p) { return p != 'cordova-plugins'; })
                 }).then(function(answer) {
-                    return answer.plugins_list.split(' ');
+                    return answer.plugins_list;
                 });
             }
         }).then(function(plugins_list) {


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