trello-cli-unofficial 0.9.3 → 0.9.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 +14 -0
- package/README.md +15 -22
- package/bin/cli.js +110 -0
- package/bun.lock +25 -0
- package/dist/trello-cli-unofficial-0.9.5.tgz +0 -0
- package/package.json +5 -3
- package/dist/trello-cli-unofficial-0.9.3.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [0.9.5](https://github.com/JaegerCaiser/trello-cli-unofficial/compare/v0.9.4...v0.9.5) (2025-11-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* improve Bun dependency management and user experience ([fe12f62](https://github.com/JaegerCaiser/trello-cli-unofficial/commit/fe12f627de9c7e0202ce77efe563480e37ab1c34))
|
|
7
|
+
|
|
8
|
+
## [0.9.4](https://github.com/JaegerCaiser/trello-cli-unofficial/compare/v0.9.3...v0.9.4) (2025-11-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* create CLI wrapper to ensure Bun execution ([87deabf](https://github.com/JaegerCaiser/trello-cli-unofficial/commit/87deabf6c8be566a764bb52d057bebb49090f88f))
|
|
14
|
+
|
|
1
15
|
## [0.9.3](https://github.com/JaegerCaiser/trello-cli-unofficial/compare/v0.9.2...v0.9.3) (2025-11-14)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -30,16 +30,16 @@ An unofficial Trello CLI using Power-Up authentication, built with Bun for maxim
|
|
|
30
30
|
### Prerequisites
|
|
31
31
|
|
|
32
32
|
- **[Node.js 16+](https://nodejs.org/) (Required)**
|
|
33
|
-
- **
|
|
33
|
+
- **Bun incluído automaticamente** - Não é necessário instalar separadamente
|
|
34
34
|
- Trello account with Power-Up enabled
|
|
35
35
|
- **Supported Platforms:** Linux, macOS, Windows
|
|
36
36
|
|
|
37
37
|
### NPM Installation (Recommended)
|
|
38
38
|
|
|
39
|
-
O
|
|
39
|
+
O CLI inclui o Bun automaticamente. Basta instalar e usar imediatamente!
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
# Installation
|
|
42
|
+
# Installation - Bun is included automatically
|
|
43
43
|
npm install -g trello-cli-unofficial
|
|
44
44
|
|
|
45
45
|
# Or with other package managers
|
|
@@ -48,41 +48,34 @@ yarn global add trello-cli-unofficial
|
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
# Option 4: Using PNPM
|
|
51
|
+
|
|
51
52
|
pnpm add -g trello-cli-unofficial
|
|
52
53
|
|
|
53
|
-
#
|
|
54
|
+
# Ready to use immediately!
|
|
55
|
+
|
|
54
56
|
tcu --version
|
|
55
|
-
|
|
57
|
+
|
|
58
|
+
````
|
|
56
59
|
|
|
57
60
|
#### Windows Installation
|
|
58
61
|
|
|
59
|
-
|
|
62
|
+
Para usuários Windows, a instalação é simples com qualquer gerenciador de pacotes:
|
|
60
63
|
|
|
61
|
-
**PowerShell (Recommended):**
|
|
62
64
|
```powershell
|
|
63
|
-
#
|
|
65
|
+
# Usando NPM (funciona com Node.js)
|
|
64
66
|
npm install -g trello-cli-unofficial
|
|
65
67
|
|
|
66
|
-
#
|
|
68
|
+
# Ou usando Bun (recomendado para melhor performance)
|
|
67
69
|
bun add -g trello-cli-unofficial
|
|
68
70
|
|
|
69
|
-
#
|
|
71
|
+
# Ou usando Yarn
|
|
70
72
|
yarn global add trello-cli-unofficial
|
|
71
73
|
|
|
72
|
-
#
|
|
73
|
-
tcu --version
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**Command Prompt:**
|
|
77
|
-
```cmd
|
|
78
|
-
# Using NPM
|
|
79
|
-
npm install -g trello-cli-unofficial
|
|
80
|
-
|
|
81
|
-
# Verify installation
|
|
74
|
+
# Pronto para usar!
|
|
82
75
|
tcu --version
|
|
83
|
-
|
|
76
|
+
````
|
|
84
77
|
|
|
85
|
-
**
|
|
78
|
+
**Nota:** No Windows, você pode precisar reiniciar o terminal após a instalação para atualizar o PATH.
|
|
86
79
|
|
|
87
80
|
### Manual Installation (Development)
|
|
88
81
|
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { execSync, spawn } from 'node:child_process';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import process from 'node:process';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
|
|
10
|
+
// Detect language from environment
|
|
11
|
+
function detectLanguage() {
|
|
12
|
+
const langVars = ['LANG', 'LANGUAGE', 'LC_ALL', 'LC_MESSAGES'];
|
|
13
|
+
for (const varName of langVars) {
|
|
14
|
+
const value = process.env[varName];
|
|
15
|
+
if (value && value.toLowerCase().includes('pt')) {
|
|
16
|
+
return 'pt';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return 'en';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const lang = detectLanguage();
|
|
23
|
+
|
|
24
|
+
const messages = {
|
|
25
|
+
pt: {
|
|
26
|
+
bunRequired: '❌ Bun é necessário para executar o Trello CLI Unofficial',
|
|
27
|
+
bunNotFound: 'Bun não foi encontrado no sistema',
|
|
28
|
+
installBun: '📦 Instale o Bun primeiro:',
|
|
29
|
+
installCommand: 'curl -fsSL https://bun.sh/install | bash',
|
|
30
|
+
windowsInstall: 'powershell -c "irm bun.sh/install.ps1 | iex"',
|
|
31
|
+
afterInstall: 'Após instalar, reinicie o terminal e execute novamente',
|
|
32
|
+
versionCommand: 'Verifique com: bun --version',
|
|
33
|
+
},
|
|
34
|
+
en: {
|
|
35
|
+
bunRequired: '❌ Bun is required to run Trello CLI Unofficial',
|
|
36
|
+
bunNotFound: 'Bun was not found on the system',
|
|
37
|
+
installBun: '📦 Please install Bun first:',
|
|
38
|
+
installCommand: 'curl -fsSL https://bun.sh/install | bash',
|
|
39
|
+
windowsInstall: 'powershell -c "irm bun.sh/install.ps1 | iex"',
|
|
40
|
+
afterInstall: 'After installation, restart your terminal and run again',
|
|
41
|
+
versionCommand: 'Check with: bun --version',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const msg = messages[lang];
|
|
46
|
+
|
|
47
|
+
// Check if Bun is available (local or global)
|
|
48
|
+
function isBunAvailable() {
|
|
49
|
+
try {
|
|
50
|
+
// First try local Bun
|
|
51
|
+
execSync('node_modules/.bin/bun --version', { stdio: 'pipe' });
|
|
52
|
+
return 'local';
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
try {
|
|
56
|
+
// Then try global Bun
|
|
57
|
+
execSync('bun --version', { stdio: 'pipe' });
|
|
58
|
+
return 'global';
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Main execution
|
|
67
|
+
const bunType = isBunAvailable();
|
|
68
|
+
if (!bunType) {
|
|
69
|
+
console.log(msg.bunRequired);
|
|
70
|
+
console.log(msg.bunNotFound);
|
|
71
|
+
console.log('');
|
|
72
|
+
console.log(msg.installBun);
|
|
73
|
+
|
|
74
|
+
// Detect platform for appropriate install command
|
|
75
|
+
const platform = process.platform;
|
|
76
|
+
if (platform === 'win32') {
|
|
77
|
+
console.log(`Windows: ${msg.windowsInstall}`);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
console.log(`Unix/Linux/macOS: ${msg.installCommand}`);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
console.log('');
|
|
84
|
+
console.log(msg.afterInstall);
|
|
85
|
+
console.log(msg.versionCommand);
|
|
86
|
+
process.exit(1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Bun is available, execute the main script
|
|
90
|
+
const mainScript = path.join(__dirname, '..', 'dist', 'main.js');
|
|
91
|
+
const args = process.argv.slice(2);
|
|
92
|
+
|
|
93
|
+
// Use local Bun if available, otherwise global
|
|
94
|
+
const bunCommand = bunType === 'local'
|
|
95
|
+
? path.join(__dirname, '..', 'node_modules', '.bin', 'bun')
|
|
96
|
+
: 'bun';
|
|
97
|
+
|
|
98
|
+
const child = spawn(bunCommand, [mainScript, ...args], {
|
|
99
|
+
stdio: 'inherit',
|
|
100
|
+
cwd: process.cwd(),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
child.on('exit', (code) => {
|
|
104
|
+
process.exit(code);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
child.on('error', (error) => {
|
|
108
|
+
console.error('Failed to start Bun:', error.message);
|
|
109
|
+
process.exit(1);
|
|
110
|
+
});
|
package/bun.lock
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"name": "trello-cli-unofficial",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@types/node": "^24.10.0",
|
|
9
|
+
"bun": "^1.3.2",
|
|
9
10
|
"commander": "^14.0.2",
|
|
10
11
|
"dotenv": "^17.2.3",
|
|
11
12
|
"fs-extra": "^11.3.2",
|
|
@@ -165,6 +166,28 @@
|
|
|
165
166
|
|
|
166
167
|
"@nodelib/fs.walk": ["@nodelib/fs.walk@1.2.8", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="],
|
|
167
168
|
|
|
169
|
+
"@oven/bun-darwin-aarch64": ["@oven/bun-darwin-aarch64@1.3.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-licBDIbbLP5L5/S0+bwtJynso94XD3KyqSP48K59Sq7Mude6C7dR5ZujZm4Ut4BwZqUFfNOfYNMWBU5nlL7t1A=="],
|
|
170
|
+
|
|
171
|
+
"@oven/bun-darwin-x64": ["@oven/bun-darwin-x64@1.3.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-hn8lLzsYyyh6ULo2E8v2SqtrWOkdQKJwapeVy1rDw7juTTeHY3KDudGWf4mVYteC9riZU6HD88Fn3nGwyX0eIg=="],
|
|
172
|
+
|
|
173
|
+
"@oven/bun-darwin-x64-baseline": ["@oven/bun-darwin-x64-baseline@1.3.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-UHxdtbyxdtNJUNcXtIrjx3Lmq8ji3KywlXtIHV/0vn9A8W5mulqOcryqUWMFVH9JTIIzmNn6Q/qVmXHTME63Ww=="],
|
|
174
|
+
|
|
175
|
+
"@oven/bun-linux-aarch64": ["@oven/bun-linux-aarch64@1.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-5uZzxzvHU/z+3cZwN/A0H8G+enQ+9FkeJVZkE2fwK2XhiJZFUGAuWajCpy7GepvOWlqV7VjPaKi2+Qmr4IX7nQ=="],
|
|
176
|
+
|
|
177
|
+
"@oven/bun-linux-aarch64-musl": ["@oven/bun-linux-aarch64-musl@1.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-OD9DYkjes7WXieBn4zQZGXWhRVZhIEWMDGCetZ3H4vxIuweZ++iul/CNX5jdpNXaJ17myb1ROMvmRbrqW44j3w=="],
|
|
178
|
+
|
|
179
|
+
"@oven/bun-linux-x64": ["@oven/bun-linux-x64@1.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-EoEuRP9bxAxVKuvi6tZ0ZENjueP4lvjz0mKsMzdG0kwg/2apGKiirH1l0RIcdmvfDGGuDmNiv/XBpkoXq1x8ug=="],
|
|
180
|
+
|
|
181
|
+
"@oven/bun-linux-x64-baseline": ["@oven/bun-linux-x64-baseline@1.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-m9Ov9YH8KjRLui87eNtQQFKVnjGsNk3xgbrR9c8d2FS3NfZSxmVjSeBvEsDjzNf1TXLDriHb/NYOlpiMf/QzDg=="],
|
|
182
|
+
|
|
183
|
+
"@oven/bun-linux-x64-musl": ["@oven/bun-linux-x64-musl@1.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-3TuOsRVoG8K+soQWRo+Cp5ACpRs6rTFSu5tAqc/6WrqwbNWmqjov/eWJPTgz3gPXnC7uNKVG7RxxAmV8r2EYTQ=="],
|
|
184
|
+
|
|
185
|
+
"@oven/bun-linux-x64-musl-baseline": ["@oven/bun-linux-x64-musl-baseline@1.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-q8Hto8hcpofPJjvuvjuwyYvhOaAzPw1F5vRUUeOJDmDwZ4lZhANFM0rUwchMzfWUJCD6jg8/EVQ8MiixnZWU0A=="],
|
|
186
|
+
|
|
187
|
+
"@oven/bun-windows-x64": ["@oven/bun-windows-x64@1.3.2", "", { "os": "win32", "cpu": "x64" }, "sha512-nZJUa5NprPYQ4Ii4cMwtP9PzlJJTp1XhxJ+A9eSn1Jfr6YygVWyN2KLjenyI93IcuBouBAaepDAVZZjH2lFBhg=="],
|
|
188
|
+
|
|
189
|
+
"@oven/bun-windows-x64-baseline": ["@oven/bun-windows-x64-baseline@1.3.2", "", { "os": "win32", "cpu": "x64" }, "sha512-s00T99MjB+xLOWq+t+wVaVBrry+oBOZNiTJijt+bmkp/MJptYS3FGvs7a+nkjLNzoNDoWQcXgKew6AaHES37Bg=="],
|
|
190
|
+
|
|
168
191
|
"@pkgr/core": ["@pkgr/core@0.1.2", "", {}, "sha512-fdDH1LSGfZdTH2sxdpVMw31BanV28K/Gry0cVFxaNP77neJSkd82mM8ErPNYs9e+0O7SdHBLTDzDgwUuy18RnQ=="],
|
|
169
192
|
|
|
170
193
|
"@sindresorhus/base62": ["@sindresorhus/base62@1.0.0", "", {}, "sha512-TeheYy0ILzBEI/CO55CP6zJCSdSWeRtGnHy8U8dWSUH4I68iqTsy7HkMktR4xakThc9jotkPQUXT4ITdbV7cHA=="],
|
|
@@ -267,6 +290,8 @@
|
|
|
267
290
|
|
|
268
291
|
"builtin-modules": ["builtin-modules@5.0.0", "", {}, "sha512-bkXY9WsVpY7CvMhKSR6pZilZu9Ln5WDrKVBUXf2S443etkmEO4V58heTecXcUIsNsi4Rx8JUO4NfX1IcQl4deg=="],
|
|
269
292
|
|
|
293
|
+
"bun": ["bun@1.3.2", "", { "optionalDependencies": { "@oven/bun-darwin-aarch64": "1.3.2", "@oven/bun-darwin-x64": "1.3.2", "@oven/bun-darwin-x64-baseline": "1.3.2", "@oven/bun-linux-aarch64": "1.3.2", "@oven/bun-linux-aarch64-musl": "1.3.2", "@oven/bun-linux-x64": "1.3.2", "@oven/bun-linux-x64-baseline": "1.3.2", "@oven/bun-linux-x64-musl": "1.3.2", "@oven/bun-linux-x64-musl-baseline": "1.3.2", "@oven/bun-windows-x64": "1.3.2", "@oven/bun-windows-x64-baseline": "1.3.2" }, "os": [ "linux", "win32", "darwin", ], "cpu": [ "x64", "arm64", ], "bin": { "bun": "bin/bun.exe", "bunx": "bin/bunx.exe" } }, "sha512-x75mPJiEfhO1j4Tfc65+PtW6ZyrAB6yTZInydnjDZXF9u9PRAnr6OK3v0Q9dpDl0dxRHkXlYvJ8tteJxc8t4Sw=="],
|
|
294
|
+
|
|
270
295
|
"bun-types": ["bun-types@1.3.2", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-i/Gln4tbzKNuxP70OWhJRZz1MRfvqExowP7U6JKoI8cntFrtxg7RJK3jvz7wQW54UuvNC8tbKHHri5fy74FVqg=="],
|
|
271
296
|
|
|
272
297
|
"cac": ["cac@6.7.14", "", {}, "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ=="],
|
|
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.9.
|
|
4
|
+
"version": "0.9.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/)",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
],
|
|
27
27
|
"module": "main.ts",
|
|
28
28
|
"bin": {
|
|
29
|
-
"trello-cli-unofficial": "./
|
|
30
|
-
"tcu": "./
|
|
29
|
+
"trello-cli-unofficial": "./bin/cli.js",
|
|
30
|
+
"tcu": "./bin/cli.js"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"LICENSE",
|
|
39
39
|
"PAT_SETUP.md",
|
|
40
40
|
"README.md",
|
|
41
|
+
"bin",
|
|
41
42
|
"bun.lock",
|
|
42
43
|
"bunfig.toml",
|
|
43
44
|
"dist",
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
},
|
|
78
79
|
"dependencies": {
|
|
79
80
|
"@types/node": "^24.10.0",
|
|
81
|
+
"bun": "^1.3.2",
|
|
80
82
|
"commander": "^14.0.2",
|
|
81
83
|
"dotenv": "^17.2.3",
|
|
82
84
|
"fs-extra": "^11.3.2",
|
|
Binary file
|