@cannbot-ai/install-helper 0.0.2-beta.20 → 0.0.2-beta.21
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/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -629,7 +629,7 @@ async function runWizard() {
|
|
|
629
629
|
step = 2;
|
|
630
630
|
break;
|
|
631
631
|
}
|
|
632
|
-
if (result === CANCEL
|
|
632
|
+
if (result === CANCEL) {
|
|
633
633
|
return { language: config.language || "zh_CN", tool: selectedTool, level, plugins: [], confirmed: false };
|
|
634
634
|
}
|
|
635
635
|
updateConfig({ lastTool: selectedTool, lastLevel: level });
|
|
@@ -2847,7 +2847,7 @@ async function installCommand(names, options) {
|
|
|
2847
2847
|
logger.blank();
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
2850
|
-
async function installPlugins(pluginIds, tool, level, repoPath) {
|
|
2850
|
+
async function installPlugins(pluginIds, tool, level, repoPath, installPath, yes) {
|
|
2851
2851
|
const results = [];
|
|
2852
2852
|
const total = pluginIds.length;
|
|
2853
2853
|
for (let i = 0; i < pluginIds.length; i++) {
|
|
@@ -2859,7 +2859,9 @@ async function installPlugins(pluginIds, tool, level, repoPath) {
|
|
|
2859
2859
|
pluginId,
|
|
2860
2860
|
tool,
|
|
2861
2861
|
level,
|
|
2862
|
-
repoPath
|
|
2862
|
+
repoPath,
|
|
2863
|
+
installPath,
|
|
2864
|
+
yes
|
|
2863
2865
|
});
|
|
2864
2866
|
if (result.success) {
|
|
2865
2867
|
spinner.succeed(
|
|
@@ -3158,7 +3160,7 @@ function createCLI() {
|
|
|
3158
3160
|
setLanguage(config.language);
|
|
3159
3161
|
}
|
|
3160
3162
|
const program2 = new Command();
|
|
3161
|
-
program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.
|
|
3163
|
+
program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.21");
|
|
3162
3164
|
program2.command("init", { isDefault: false }).description("Run interactive installation wizard").action(async () => {
|
|
3163
3165
|
await initCommand();
|
|
3164
3166
|
});
|