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-plugman.git
The following commit(s) were added to refs/heads/master by this push:
new a0e42e8 feat!: remove remove create plugin support (#166)
a0e42e8 is described below
commit a0e42e80645d4551091bb73559b440db990425d4
Author: エリス <[email protected]>
AuthorDate: Tue Feb 3 09:32:51 2026 +0900
feat!: remove remove create plugin support (#166)
---
doc/create.txt | 13 -------------
doc/createpackagejson.txt | 3 ---
doc/platform.txt | 4 ----
doc/summary.txt | 5 -----
src/commands.js | 25 -------------------------
5 files changed, 50 deletions(-)
diff --git a/doc/create.txt b/doc/create.txt
deleted file mode 100644
index 933034a..0000000
--- a/doc/create.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-Create a plugin
-
-Usage: plugman create PARAMETER... [OPTION]...
-
-Parameters:
- --name <pluginName> The name of the plugin
- --plugin_id <pluginID> An ID for the plugin, ex: org.bar.foo
- --plugin_version <version> A version for the plugin, ex: 0.0.1
-
-Options:
- --path <directory> An absolute or relative path for the directory
- where the plugin project will be created
- --variable NAME=VALUE Extra variables such as description or Author
diff --git a/doc/createpackagejson.txt b/doc/createpackagejson.txt
deleted file mode 100644
index 0d32061..0000000
--- a/doc/createpackagejson.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Derive a package.json file for a plugin based on its plugin.xml
-
-Usage: plugman createpackagejson <plugin directory>
diff --git a/doc/platform.txt b/doc/platform.txt
deleted file mode 100644
index 918e916..0000000
--- a/doc/platform.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Add or remove a platform to a plugin
-
-Usage: plugman platform add --platform_name <platform>
- plugman platform remove --platform_name <platform>
diff --git a/doc/summary.txt b/doc/summary.txt
index 69527f0..05e1d8b 100644
--- a/doc/summary.txt
+++ b/doc/summary.txt
@@ -6,11 +6,6 @@ Manage plugins in a Cordova project
install Install a plugin into a Cordova project
uninstall Uninstall a plugin from a Cordova project
-Author plugins
- create Create a plugin
- createpackagejson Add a package.json file to a plugin
- platform Add and remove platforms from a plugin
-
Global options:
--help, -h Show help for <command> or this if none was given
--debug, -d Enable verbose output
diff --git a/src/commands.js b/src/commands.js
index 83cb44a..4ef5d6e 100644
--- a/src/commands.js
+++ b/src/commands.js
@@ -56,31 +56,6 @@ module.exports = {
return pEachSeries(cli_opts.plugin, pluginSrc =>
plugman.uninstall(cli_opts.platform, cli_opts.project, pluginSrc,
cli_opts.plugins_dir, opts)
);
- },
-
- create (cli_opts) {
- assertRequiredOptions(cli_opts, ['name', 'plugin_id',
'plugin_version']);
-
- const cli_variables = expandCliVariables(cli_opts.variable);
- return plugman.create(cli_opts.name, cli_opts.plugin_id,
cli_opts.plugin_version, cli_opts.path || '.', cli_variables);
- },
-
- platform (cli_opts) {
- assertRequiredOptions(cli_opts, ['platform_name']);
- const operation = cli_opts.argv.remain[0] || '';
- if (operation !== 'add' && operation !== 'remove') {
- throw new Error(`Operation must be either 'add' or 'remove' but
was '${operation}'`);
- }
-
- return plugman.platform({ operation, platform_name:
cli_opts.platform_name });
- },
-
- createpackagejson (cli_opts) {
- const plugin_path = cli_opts.argv.remain[0];
- if (!plugin_path) {
- throw new Error('Missing required path to plugin');
- }
- return plugman.createpackagejson(plugin_path);
}
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]