trello-cli-unofficial 0.7.3 → 0.7.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/PAT_SETUP.md ADDED
@@ -0,0 +1,48 @@
1
+ # Personal Access Token (PAT) Setup
2
+
3
+ ## Why do I need a PAT?
4
+
5
+ The release workflow needs to push back to the repository to:
6
+
7
+ - Update the version in `package.json`
8
+ - Create release commits
9
+ - Create version tags
10
+ - Push the tags
11
+
12
+ The default `GITHUB_TOKEN` doesn't have sufficient permissions for these operations on protected branches.
13
+
14
+ ## How to create a PAT
15
+
16
+ 1. Go to [GitHub Settings > Developer settings > Personal access tokens](https://github.com/settings/tokens)
17
+ 2. Click "Generate new token (classic)"
18
+ 3. Give it a descriptive name, e.g., "Trello CLI Release"
19
+ 4. Select the following permissions:
20
+ - ✅ `repo` (Full control of private repositories)
21
+ - ✅ `workflow` (Update GitHub Action workflows)
22
+ 5. Click "Generate token"
23
+ 6. **COPY THE TOKEN IMMEDIATELY** (it only appears once!)
24
+
25
+ ## How to add the PAT to the repository
26
+
27
+ 1. Go to your repository on GitHub
28
+ 2. Click "Settings" → "Secrets and variables" → "Actions"
29
+ 3. Click "New repository secret"
30
+ 4. Name: `PAT_TOKEN`
31
+ 5. Value: Paste the token you copied
32
+ 6. Click "Add secret"
33
+
34
+ ## Verification
35
+
36
+ After adding the secret, the next commit with `feat:`, `fix:`, or `BREAKING CHANGE` will:
37
+
38
+ 1. Detect the type of change
39
+ 2. Update the version automatically
40
+ 3. Create a GitHub release
41
+ 4. Publish to NPM
42
+
43
+ ## Troubleshooting
44
+
45
+ - **"Permission denied" error**: Check if the PAT has the correct permissions
46
+ - **"Resource not accessible" error**: The PAT may have expired, generate a new one
47
+ - **Workflow doesn't run**: Check if the commit message follows conventional commits pattern</content>
48
+ <parameter name="filePath">/home/matheus/Desenvolvimento/personal/trello-cli-unofficial/PAT_SETUP.md
package/README.md CHANGED
@@ -20,6 +20,7 @@ An unofficial Trello CLI using Power-Up authentication, built with Bun for maxim
20
20
  - ✏️ **CRUD Operations**: Create, read, update, and delete cards
21
21
  - 📦 **Move Cards**: Between lists in the same board
22
22
  - 🛠️ **Traditional CLI**: Also works as a command-line tool
23
+ - 🌍 **Internationalization**: Support for Portuguese (pt-BR) and English (en) with auto-detection
23
24
  - 🤖 **Automated CI/CD**: Semantic versioning and NPM publishing on every release
24
25
  - � **Quality Gates**: 95% test coverage threshold enforced in CI/CD
25
26
  - �🔒 **Secure Publishing**: NPM provenance with GitHub Actions OIDC
@@ -100,7 +101,40 @@ The token is automatically saved in `~/.trello-cli-unofficial/config.json`:
100
101
  }
101
102
  ```
102
103
 
103
- ## 🎮 Usage
104
+ ## Internationalization (i18n)
105
+
106
+ The CLI automatically detects your system language and displays messages in the appropriate language.
107
+
108
+ ### Supported Languages
109
+
110
+ - 🇧🇷 **Portuguese (pt-BR)** - Default for Portuguese-speaking systems
111
+ - 🇺🇸 **English (en)** - Default for other systems
112
+
113
+ ### Language Detection
114
+
115
+ The language is automatically detected from your system's `LANG` environment variable:
116
+
117
+ ```bash
118
+ # Force Portuguese
119
+ LANG=pt_BR.UTF-8 tcu
120
+
121
+ # Force English
122
+ LANG=en_US.UTF-8 tcu
123
+ ```
124
+
125
+ ### Manual Language Switching
126
+
127
+ ```typescript
128
+ import { changeLanguage } from "trello-cli-unofficial";
129
+
130
+ // Switch to Portuguese
131
+ changeLanguage("pt-BR");
132
+
133
+ // Switch to English
134
+ changeLanguage("en");
135
+ ```
136
+
137
+ ## �🎮 Usage
104
138
 
105
139
  ### Interactive Mode (Recommended)
106
140
 
@@ -177,6 +211,7 @@ This project uses automated CI/CD with semantic versioning based on **commit mes
177
211
  ### Automated Publishing
178
212
 
179
213
  Every push to `main` branch triggers:
214
+
180
215
  1. **CI Pipeline**: Linting, type checking, tests, coverage, and build
181
216
  2. **Release Pipeline**: Automatic version bump based on commit message
182
217
  3. **NPM Publishing**: Package published with provenance and signed builds
package/bun.lock CHANGED
@@ -9,6 +9,7 @@
9
9
  "commander": "^14.0.2",
10
10
  "dotenv": "^17.2.3",
11
11
  "fs-extra": "^11.3.2",
12
+ "i18next": "^25.6.1",
12
13
  "inquirer": "^12.10.0",
13
14
  },
14
15
  "devDependencies": {
@@ -35,6 +36,8 @@
35
36
 
36
37
  "@babel/parser": ["@babel/parser@7.28.5", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],
37
38
 
39
+ "@babel/runtime": ["@babel/runtime@7.28.4", "", {}, "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ=="],
40
+
38
41
  "@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
39
42
 
40
43
  "@clack/core": ["@clack/core@0.5.0", "", { "dependencies": { "picocolors": "^1.0.0", "sisteransi": "^1.0.5" } }, "sha512-p3y0FIOwaYRUPRcMO7+dlmLh8PSRcrjuTndsiA0WAFbWES0mLZlrjVoBRZ9DzkPFJZG6KGkJmoEAY0ZcVWTkow=="],
@@ -409,6 +412,8 @@
409
412
 
410
413
  "html-entities": ["html-entities@2.6.0", "", {}, "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ=="],
411
414
 
415
+ "i18next": ["i18next@25.6.1", "", { "dependencies": { "@babel/runtime": "^7.27.6" }, "peerDependencies": { "typescript": "^5" }, "optionalPeers": ["typescript"] }, "sha512-yUWvdXtalZztmKrKw3yz/AvSP3yKyqIkVPx/wyvoYy9lkLmwzItLxp0iHZLG5hfVQ539Jor4XLO+U+NHIXg7pw=="],
416
+
412
417
  "iconv-lite": ["iconv-lite@0.7.0", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ=="],
413
418
 
414
419
  "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],