@pikecode/api-key-manager 1.3.7 → 1.3.9
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/package.json
CHANGED
package/src/commands/switch.js
CHANGED
|
@@ -321,8 +321,11 @@ class EnvSwitcher extends BaseCommand {
|
|
|
321
321
|
return await this.showProviderSelection();
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
const result = await this.handleSelection(answer.provider);
|
|
325
324
|
this.currentPromptContext = null;
|
|
325
|
+
this._cancelStatusRefresh();
|
|
326
|
+
this.filteredProviders = null;
|
|
327
|
+
|
|
328
|
+
const result = await this.handleSelection(answer.provider);
|
|
326
329
|
return result;
|
|
327
330
|
|
|
328
331
|
} catch (error) {
|
|
@@ -707,9 +710,10 @@ class EnvSwitcher extends BaseCommand {
|
|
|
707
710
|
});
|
|
708
711
|
|
|
709
712
|
this._cancelStatusRefresh();
|
|
713
|
+
this.currentPromptContext = null;
|
|
714
|
+
this.filteredProviders = null;
|
|
710
715
|
|
|
711
716
|
const result = await this.handleManageAction(answer.action);
|
|
712
|
-
this.currentPromptContext = null;
|
|
713
717
|
return result;
|
|
714
718
|
|
|
715
719
|
} catch (error) {
|
|
@@ -918,8 +922,17 @@ class EnvSwitcher extends BaseCommand {
|
|
|
918
922
|
this.showExitScreen();
|
|
919
923
|
this.destroy();
|
|
920
924
|
process.exit(0);
|
|
925
|
+
case 'batch-delete': {
|
|
926
|
+
const { ProviderRemover } = require('./remove');
|
|
927
|
+
const remover = new ProviderRemover();
|
|
928
|
+
try {
|
|
929
|
+
await remover.remove();
|
|
930
|
+
} finally {
|
|
931
|
+
remover.destroy();
|
|
932
|
+
}
|
|
933
|
+
return await this.showManageMenu();
|
|
934
|
+
}
|
|
921
935
|
default:
|
|
922
|
-
// 如果选择的是供应商名称,显示该供应商的详细信息
|
|
923
936
|
return await this.showProviderDetails(action);
|
|
924
937
|
}
|
|
925
938
|
}
|