zhixuan-plugin-cli 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +3 -3
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -38,9 +38,9 @@ program
|
|
|
38
38
|
.description('推送到智轩平台')
|
|
39
39
|
.option('--pluginId <pluginId>', '插件ID')
|
|
40
40
|
.option('-vNo, --versionNum <version>', '版本号')
|
|
41
|
-
.option('-vDesc, versionDescription <versionDescription>', '插件描述')
|
|
41
|
+
.option('-vDesc, --versionDescription <versionDescription>', '插件描述')
|
|
42
42
|
.option('-t, --token <token>', '访问令牌')
|
|
43
|
-
.option('--server <server>', '服务器地址', 'https://dev.zhixuan.cloud')
|
|
43
|
+
.option('-s, --server <server>', '服务器地址', 'https://dev.zhixuan.cloud')
|
|
44
44
|
.option('-f, --force', '强制推送,不询问确认')
|
|
45
45
|
.action((options) => {
|
|
46
46
|
require('../commands/push')(options);
|
|
@@ -64,7 +64,7 @@ program.on('--help', () => {
|
|
|
64
64
|
console.log(chalk.white(' $ zx-cli pull --versionId <version-id> --token <token> --dir ./my-plugins'));
|
|
65
65
|
console.log();
|
|
66
66
|
console.log(chalk.cyan(' # 推送插件(使用插件ID、插件版本、token)'));
|
|
67
|
-
console.log(chalk.white(' $ zx-cli push --pluginId <plugin-id> --
|
|
67
|
+
console.log(chalk.white(' $ zx-cli push --pluginId <plugin-id> --versionNum <version> -vDesc <versionDescription> --token <token>'));
|
|
68
68
|
console.log();
|
|
69
69
|
});
|
|
70
70
|
|