bbk-cli 1.0.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/.claude/bitbucket-config.local.md.example +58 -0
- package/.eslintcache +1 -0
- package/.github/dependabot.yml +15 -0
- package/.github/workflows/convetional-commit.yml +24 -0
- package/.github/workflows/publish-on-tag.yml +47 -0
- package/.github/workflows/release-please.yml +21 -0
- package/.github/workflows/run-tests.yml +75 -0
- package/.nvmrc +1 -0
- package/.prettierignore +2 -0
- package/.prettierrc.cjs +17 -0
- package/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +21 -0
- package/LICENSE +202 -0
- package/README.md +381 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/wrapper.d.ts +38 -0
- package/dist/cli/wrapper.d.ts.map +1 -0
- package/dist/cli/wrapper.js +326 -0
- package/dist/cli/wrapper.js.map +1 -0
- package/dist/commands/helpers.d.ts +11 -0
- package/dist/commands/helpers.d.ts.map +1 -0
- package/dist/commands/helpers.js +40 -0
- package/dist/commands/helpers.js.map +1 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +3 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/runner.d.ts +7 -0
- package/dist/commands/runner.d.ts.map +1 -0
- package/dist/commands/runner.js +126 -0
- package/dist/commands/runner.js.map +1 -0
- package/dist/config/constants.d.ts +16 -0
- package/dist/config/constants.d.ts.map +1 -0
- package/dist/config/constants.js +171 -0
- package/dist/config/constants.js.map +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/arg-parser.d.ts +7 -0
- package/dist/utils/arg-parser.d.ts.map +1 -0
- package/dist/utils/arg-parser.js +67 -0
- package/dist/utils/arg-parser.js.map +1 -0
- package/dist/utils/bitbucket-client.d.ts +122 -0
- package/dist/utils/bitbucket-client.d.ts.map +1 -0
- package/dist/utils/bitbucket-client.js +182 -0
- package/dist/utils/bitbucket-client.js.map +1 -0
- package/dist/utils/bitbucket-utils.d.ts +110 -0
- package/dist/utils/bitbucket-utils.d.ts.map +1 -0
- package/dist/utils/bitbucket-utils.js +491 -0
- package/dist/utils/bitbucket-utils.js.map +1 -0
- package/dist/utils/config-loader.d.ts +41 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-loader.js +76 -0
- package/dist/utils/config-loader.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/eslint.config.ts +15 -0
- package/package.json +62 -0
- package/release-please-config.json +33 -0
- package/tests/integration/cli-integration.test.ts +528 -0
- package/tests/unit/cli/wrapper.test.ts +727 -0
- package/tests/unit/commands/helpers.test.ts +268 -0
- package/tests/unit/commands/runner.test.ts +758 -0
- package/tests/unit/utils/arg-parser.test.ts +350 -0
- package/tests/unit/utils/config-loader.test.ts +158 -0
- package/vitest.config.ts +22 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
profiles:
|
|
3
|
+
cloud:
|
|
4
|
+
username: your-username
|
|
5
|
+
password: YOUR_APP_PASSWORD_HERE
|
|
6
|
+
|
|
7
|
+
defaultProfile: cloud
|
|
8
|
+
defaultFormat: json
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Bitbucket API Configuration
|
|
12
|
+
|
|
13
|
+
This file stores your Bitbucket API connection profiles.
|
|
14
|
+
|
|
15
|
+
## Authentication
|
|
16
|
+
|
|
17
|
+
You can authenticate using either:
|
|
18
|
+
|
|
19
|
+
1. **Username + App Password** (recommended):
|
|
20
|
+
```yaml
|
|
21
|
+
profiles:
|
|
22
|
+
cloud:
|
|
23
|
+
username: your-username
|
|
24
|
+
password: your_app_password
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
2. **Token**:
|
|
28
|
+
```yaml
|
|
29
|
+
profiles:
|
|
30
|
+
cloud:
|
|
31
|
+
token: your_api_token
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Creating an App Password
|
|
35
|
+
|
|
36
|
+
1. Go to https://bitbucket.org/account/settings/
|
|
37
|
+
2. Click "App passwords" in the left sidebar
|
|
38
|
+
3. Click "Create app password"
|
|
39
|
+
4. Give it a label and select permissions (repositories:read, pull requests:write, etc.)
|
|
40
|
+
5. Copy the generated app password
|
|
41
|
+
|
|
42
|
+
## Multiple Profiles
|
|
43
|
+
|
|
44
|
+
You can configure multiple profiles for different accounts:
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
profiles:
|
|
48
|
+
personal:
|
|
49
|
+
username: myusername
|
|
50
|
+
password: personal_app_password
|
|
51
|
+
|
|
52
|
+
work:
|
|
53
|
+
username: work-username
|
|
54
|
+
password: work_app_password
|
|
55
|
+
|
|
56
|
+
defaultProfile: personal
|
|
57
|
+
defaultFormat: json
|
|
58
|
+
```
|