bfi-cli 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +8 -0
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -8167,6 +8167,10 @@ async function dispatchSkillSubcommand(args, globalOpts) {
8167
8167
  await runDocs(subArgs, globalOpts);
8168
8168
  break;
8169
8169
  case "auth":
8170
+ if (subArgs[0] === "logout") await runLogout();
8171
+ else if (subArgs[0] === "whoami") await runWhoami(globalOpts);
8172
+ else await runLogin(subArgs, globalOpts);
8173
+ break;
8170
8174
  case "login":
8171
8175
  await runLogin(subArgs, globalOpts);
8172
8176
  break;
@@ -8240,6 +8244,10 @@ async function main() {
8240
8244
  } catch {}
8241
8245
  switch (command) {
8242
8246
  case "auth":
8247
+ if (restArgs[0] === "logout") await runLogout();
8248
+ else if (restArgs[0] === "whoami") await runWhoami(globalOpts);
8249
+ else await runLogin(restArgs, globalOpts);
8250
+ break;
8243
8251
  case "login":
8244
8252
  await runLogin(restArgs, globalOpts);
8245
8253
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bfi-cli",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "用友大业财BFI统一命令行工具,支持技能,技能包,元数据,UI元数据等",
5
5
  "type": "module",
6
6
  "bin": {