trello-cli-unofficial 0.10.4 → 0.10.5
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.10.5](https://github.com/JaegerCaiser/trello-cli-unofficial/compare/v0.10.4...v0.10.5) (2025-11-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ensure CommandController program initialization on Windows ([ed3f571](https://github.com/JaegerCaiser/trello-cli-unofficial/commit/ed3f5710c4fd0e4d7fef9fdc3c6a1c00a49f227f))
|
|
7
|
+
|
|
1
8
|
## [0.10.4](https://github.com/JaegerCaiser/trello-cli-unofficial/compare/v0.10.3...v0.10.4) (2025-11-14)
|
|
2
9
|
|
|
3
10
|
|
package/dist/main.js
CHANGED
|
@@ -31272,8 +31272,14 @@ class CommandController {
|
|
|
31272
31272
|
this.authController = new AuthController(configRepository);
|
|
31273
31273
|
this.program = new Command;
|
|
31274
31274
|
this.outputFormatter = new OutputFormatter;
|
|
31275
|
+
this.initializeProgram();
|
|
31275
31276
|
this.setupCommands();
|
|
31276
31277
|
}
|
|
31278
|
+
initializeProgram() {
|
|
31279
|
+
if (!this.program) {
|
|
31280
|
+
this.program = new Command;
|
|
31281
|
+
}
|
|
31282
|
+
}
|
|
31277
31283
|
async initializeTrelloControllers() {
|
|
31278
31284
|
await this.authController.ensureAuthenticated();
|
|
31279
31285
|
const authService = new AuthenticationService(new FileConfigRepository);
|
|
@@ -31470,6 +31476,10 @@ class CommandController {
|
|
|
31470
31476
|
});
|
|
31471
31477
|
}
|
|
31472
31478
|
async run() {
|
|
31479
|
+
if (!this.program) {
|
|
31480
|
+
this.initializeProgram();
|
|
31481
|
+
this.setupCommands();
|
|
31482
|
+
}
|
|
31473
31483
|
if (process.argv.length === 2) {
|
|
31474
31484
|
const configRepository = new FileConfigRepository;
|
|
31475
31485
|
const cli = new (await Promise.resolve().then(() => (init_TrelloCliController(), exports_TrelloCliController))).TrelloCliController(configRepository, this.outputFormatter);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trello-cli-unofficial",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.5",
|
|
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/)",
|
|
@@ -25,9 +25,17 @@ export class CommandController {
|
|
|
25
25
|
this.authController = new AuthController(configRepository);
|
|
26
26
|
this.program = new Command();
|
|
27
27
|
this.outputFormatter = new OutputFormatter();
|
|
28
|
+
this.initializeProgram();
|
|
28
29
|
this.setupCommands();
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
private initializeProgram(): void {
|
|
33
|
+
// Ensure program is properly initialized
|
|
34
|
+
if (!this.program) {
|
|
35
|
+
this.program = new Command();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
31
39
|
private async initializeTrelloControllers(): Promise<void> {
|
|
32
40
|
await this.authController.ensureAuthenticated();
|
|
33
41
|
|
|
@@ -66,7 +74,7 @@ export class CommandController {
|
|
|
66
74
|
.version(version)
|
|
67
75
|
.option('-f, --format <format>', t('commands.formatOption'), 'table')
|
|
68
76
|
.option('-v', t('commands.versionOption'))
|
|
69
|
-
.on('option:format', (format) => {
|
|
77
|
+
.on('option:format', (format: string) => {
|
|
70
78
|
this.outputFormatter.setFormat(format as OutputFormat);
|
|
71
79
|
})
|
|
72
80
|
.on('option:v', () => {
|
|
@@ -431,6 +439,12 @@ export class CommandController {
|
|
|
431
439
|
}
|
|
432
440
|
|
|
433
441
|
async run(): Promise<void> {
|
|
442
|
+
// Ensure program is initialized before parsing
|
|
443
|
+
if (!this.program) {
|
|
444
|
+
this.initializeProgram();
|
|
445
|
+
this.setupCommands();
|
|
446
|
+
}
|
|
447
|
+
|
|
434
448
|
// Fallback to interactive mode if no command specified
|
|
435
449
|
if (process.argv.length === 2) {
|
|
436
450
|
const configRepository = new FileConfigRepository();
|
|
Binary file
|