trello-cli-unofficial 0.10.8 → 0.11.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.11.0](https://github.com/JaegerCaiser/trello-cli-unofficial/compare/v0.10.8...v0.11.0) (2025-11-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * add --verbose option for detailed error reporting ([76d0fbe](https://github.com/JaegerCaiser/trello-cli-unofficial/commit/76d0fbedcc6fefbe8841dfb56e1cd095cb224548))
7
+
1
8
  ## [0.10.8](https://github.com/JaegerCaiser/trello-cli-unofficial/compare/v0.10.7...v0.10.8) (2025-11-14)
2
9
 
3
10
 
package/bin/cli.js CHANGED
@@ -90,6 +90,21 @@ if (!bunType) {
90
90
  const mainScript = path.join(__dirname, '..', 'dist', 'main.js');
91
91
  const args = process.argv.slice(2);
92
92
 
93
+ // Check for verbose flag
94
+ const isVerbose = args.includes('--verbose') || args.includes('-V');
95
+ if (isVerbose) {
96
+ process.env.VERBOSE_ERRORS = 'true';
97
+ // Remove verbose flag from args so it doesn't interfere
98
+ const verboseIndex = args.indexOf('--verbose');
99
+ if (verboseIndex !== -1) {
100
+ args.splice(verboseIndex, 1);
101
+ }
102
+ const shortVerboseIndex = args.indexOf('-V');
103
+ if (shortVerboseIndex !== -1) {
104
+ args.splice(shortVerboseIndex, 1);
105
+ }
106
+ }
107
+
93
108
  // Use local Bun if available, otherwise global
94
109
  const bunCommand = bunType === 'local'
95
110
  ? path.join(__dirname, '..', 'node_modules', '.bin', 'bun')
@@ -98,6 +113,7 @@ const bunCommand = bunType === 'local'
98
113
  const child = spawn(bunCommand, [mainScript, ...args], {
99
114
  stdio: 'inherit',
100
115
  cwd: process.cwd(),
116
+ env: { ...process.env, VERBOSE_ERRORS: process.env.VERBOSE_ERRORS || 'false' },
101
117
  });
102
118
 
103
119
  child.on('exit', (code) => {
package/dist/main.js CHANGED
@@ -2630,6 +2630,7 @@ var require_en = __commonJS((exports, module) => {
2630
2630
  description: "Unofficial Trello CLI using Power-Up authentication",
2631
2631
  formatOption: "Output format: table, json, csv",
2632
2632
  versionOption: "output the version number",
2633
+ verboseOption: "show detailed errors for debugging",
2633
2634
  deprecated: {
2634
2635
  boardsLegacyDescription: '[DEPRECATED] Use "boards list" instead',
2635
2636
  boardsLegacyWarning: '\u26A0\uFE0F Warning: "boards" command is deprecated. Use "boards list" instead.',
@@ -2904,6 +2905,7 @@ var require_pt_BR = __commonJS((exports, module) => {
2904
2905
  description: "CLI n\xE3o oficial do Trello usando autentica\xE7\xE3o Power-Up",
2905
2906
  formatOption: "Formato de sa\xEDda: table, json, csv",
2906
2907
  versionOption: "exibe o n\xFAmero da vers\xE3o",
2908
+ verboseOption: "mostra erros detalhados para debug",
2907
2909
  deprecated: {
2908
2910
  boardsLegacyDescription: '[DEPRECIADO] Use "boards list" ao inv\xE9s disso',
2909
2911
  boardsLegacyWarning: '\u26A0\uFE0F Aviso: comando "boards" est\xE1 depreciado. Use "boards list" ao inv\xE9s disso.',
@@ -31317,11 +31319,13 @@ class CommandController {
31317
31319
  const packageJsonPath = join(process.cwd(), "package.json");
31318
31320
  const packageJson = JSON.parse(readFileSync2(packageJsonPath, "utf-8"));
31319
31321
  const version = packageJson.version;
31320
- this.program.name("trello-cli-unofficial").description(t2("commands.description")).version(version).option("-f, --format <format>", t2("commands.formatOption"), "table").option("-v", t2("commands.versionOption")).on("option:format", (format) => {
31322
+ this.program.name("trello-cli-unofficial").description(t2("commands.description")).version(version).option("-f, --format <format>", t2("commands.formatOption"), "table").option("-v", t2("commands.versionOption")).option("--verbose", t2("commands.verboseOption")).on("option:format", (format) => {
31321
31323
  this.outputFormatter.setFormat(format);
31322
31324
  }).on("option:v", () => {
31323
31325
  console.log(version);
31324
31326
  process.exit(0);
31327
+ }).on("option:verbose", () => {
31328
+ process.env.VERBOSE_ERRORS = "true";
31325
31329
  });
31326
31330
  this.program.command("interactive").alias("i").description(t2("commands.interactive.description")).action(async () => {
31327
31331
  const configRepository = new FileConfigRepository;
@@ -31663,6 +31667,11 @@ async function main() {
31663
31667
  await commandController.run();
31664
31668
  } catch (error) {
31665
31669
  console.error(t2("errors.general", { message: error.message }), error.message);
31670
+ if (process.env.VERBOSE_ERRORS === "true") {
31671
+ console.error(`
31672
+ --- Stack Trace ---`);
31673
+ console.error(error.stack);
31674
+ }
31666
31675
  process.exit(1);
31667
31676
  }
31668
31677
  }
package/main.ts CHANGED
@@ -14,6 +14,13 @@ async function main() {
14
14
  t('errors.general', { message: (error as Error).message }),
15
15
  (error as Error).message,
16
16
  );
17
+
18
+ // Show stack trace in verbose mode
19
+ if (process.env.VERBOSE_ERRORS === 'true') {
20
+ console.error('\n--- Stack Trace ---');
21
+ console.error((error as Error).stack);
22
+ }
23
+
17
24
  process.exit(1);
18
25
  }
19
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trello-cli-unofficial",
3
3
  "type": "module",
4
- "version": "0.10.8",
4
+ "version": "0.11.0",
5
5
  "private": false,
6
6
  "description": "Unofficial Trello CLI using Power-Up authentication, built with Bun for maximum performance",
7
7
  "author": "Matheus Caiser <matheus.kaiser@gmail.com> (https://www.mrdeveloper.com.br/)",
@@ -169,6 +169,7 @@
169
169
  "description": "Unofficial Trello CLI using Power-Up authentication",
170
170
  "formatOption": "Output format: table, json, csv",
171
171
  "versionOption": "output the version number",
172
+ "verboseOption": "show detailed errors for debugging",
172
173
  "deprecated": {
173
174
  "boardsLegacyDescription": "[DEPRECATED] Use \"boards list\" instead",
174
175
  "boardsLegacyWarning": "⚠️ Warning: \"boards\" command is deprecated. Use \"boards list\" instead.",
@@ -169,6 +169,7 @@
169
169
  "description": "CLI não oficial do Trello usando autenticação Power-Up",
170
170
  "formatOption": "Formato de saída: table, json, csv",
171
171
  "versionOption": "exibe o número da versão",
172
+ "verboseOption": "mostra erros detalhados para debug",
172
173
  "deprecated": {
173
174
  "boardsLegacyDescription": "[DEPRECIADO] Use \"boards list\" ao invés disso",
174
175
  "boardsLegacyWarning": "⚠️ Aviso: comando \"boards\" está depreciado. Use \"boards list\" ao invés disso.",
@@ -24,7 +24,7 @@ export class CommandController {
24
24
  const configRepository = new FileConfigRepository();
25
25
  this.authController = new AuthController(configRepository);
26
26
  this.outputFormatter = new OutputFormatter();
27
- // Commander will be initialized lazily in initializeProgram
27
+ // Commander will be initialized lazily in run()
28
28
  }
29
29
 
30
30
  private async initializeProgram(): Promise<void> {
@@ -79,12 +79,17 @@ export class CommandController {
79
79
  .version(version)
80
80
  .option('-f, --format <format>', t('commands.formatOption'), 'table')
81
81
  .option('-v', t('commands.versionOption'))
82
+ .option('--verbose', t('commands.verboseOption'))
82
83
  .on('option:format', (format: string) => {
83
84
  this.outputFormatter.setFormat(format as OutputFormat);
84
85
  })
85
86
  .on('option:v', () => {
86
87
  console.log(version);
87
88
  process.exit(0);
89
+ })
90
+ .on('option:verbose', () => {
91
+ // Enable verbose error reporting
92
+ process.env.VERBOSE_ERRORS = 'true';
88
93
  });
89
94
 
90
95
  // Interactive mode