@pmate/cli 0.24.8 → 0.24.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19852,7 +19852,9 @@ var AccountCommandHandler = class {
19852
19852
  const outPath = this.resolveFilePath(args.out);
19853
19853
  (0, import_node_fs19.writeFileSync)(outPath, JSON.stringify(keyFile, null, 2), { mode: 384 });
19854
19854
  (0, import_node_fs19.chmodSync)(outPath, 384);
19855
- ui.success(`Bot key saved to ${outPath}`);
19855
+ if (!args.json) {
19856
+ ui.success(`Bot key saved to ${outPath}`);
19857
+ }
19856
19858
  }
19857
19859
  if (args.json || !args.out) {
19858
19860
  ui.plain(JSON.stringify(keyFile, null, 2));
@@ -20028,7 +20030,9 @@ var AccountCommandHandler = class {
20028
20030
  algorithm: "ed25519"
20029
20031
  }
20030
20032
  );
20031
- ui.success(`Created bot ${bot.credential.app}/${bot.credential.name}`);
20033
+ if (!args.json) {
20034
+ ui.success(`Created bot ${bot.credential.app}/${bot.credential.name}`);
20035
+ }
20032
20036
  this.renderJson(bot, args.json);
20033
20037
  return;
20034
20038
  }
@@ -20089,7 +20093,9 @@ var AccountCommandHandler = class {
20089
20093
  }
20090
20094
  );
20091
20095
  const saved = saveLoginSession(login, args.app);
20092
- ui.success(`Logged in bot ${args.name} to ${saved.app}`);
20096
+ if (!args.json) {
20097
+ ui.success(`Logged in bot ${args.name} to ${saved.app}`);
20098
+ }
20093
20099
  this.renderJson(login, args.json);
20094
20100
  return;
20095
20101
  }
@@ -20108,7 +20114,9 @@ var AccountCommandHandler = class {
20108
20114
  role: args.role
20109
20115
  }
20110
20116
  );
20111
- ui.success(`Created profile ${profile.id} for bot ${args.name}`);
20117
+ if (!args.json) {
20118
+ ui.success(`Created profile ${profile.id} for bot ${args.name}`);
20119
+ }
20112
20120
  this.renderJson(profile, args.json);
20113
20121
  return;
20114
20122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/cli",
3
- "version": "0.24.8",
3
+ "version": "0.24.9",
4
4
  "description": "CLI utilities for the pMate project",
5
5
  "license": "MIT",
6
6
  "bin": {