bbdc-cli 0.3.1__tar.gz → 0.4.0__tar.gz
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.
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/PKG-INFO +57 -1
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/README.md +56 -0
- bbdc_cli-0.4.0/bbdc_cli/__main__.py +3561 -0
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/bbdc_cli.egg-info/PKG-INFO +57 -1
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/pyproject.toml +1 -1
- bbdc_cli-0.3.1/bbdc_cli/__main__.py +0 -1465
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/bbdc_cli/__init__.py +0 -0
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/bbdc_cli.egg-info/SOURCES.txt +0 -0
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/bbdc_cli.egg-info/dependency_links.txt +0 -0
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/bbdc_cli.egg-info/entry_points.txt +0 -0
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/bbdc_cli.egg-info/requires.txt +0 -0
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/bbdc_cli.egg-info/top_level.txt +0 -0
- {bbdc_cli-0.3.1 → bbdc_cli-0.4.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bbdc-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Typer CLI for Bitbucket Data Center
|
|
5
5
|
Project-URL: Repository, https://github.com/marcosgalleterobbva/bb-cli
|
|
6
6
|
Keywords: bitbucket,cli,typer,data-center,server
|
|
@@ -79,19 +79,43 @@ export BITBUCKET_API_TOKEN="YOUR_TOKEN"
|
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
81
|
bbdc doctor
|
|
82
|
+
# machine-readable output
|
|
83
|
+
bbdc doctor --json
|
|
82
84
|
```
|
|
83
85
|
|
|
84
86
|
If this succeeds, your base URL + token are working.
|
|
85
87
|
|
|
88
|
+
Optional (for account profile/settings lookups):
|
|
89
|
+
|
|
90
|
+
- `BITBUCKET_USER_SLUG`: your Bitbucket user slug
|
|
91
|
+
|
|
86
92
|
## Common commands
|
|
87
93
|
|
|
88
94
|
Show help:
|
|
89
95
|
|
|
90
96
|
```bash
|
|
91
97
|
bbdc --help
|
|
98
|
+
bbdc account --help
|
|
92
99
|
bbdc pr --help
|
|
93
100
|
```
|
|
94
101
|
|
|
102
|
+
Get information about your authenticated account:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# consolidated snapshot (recent repos + SSH keys + GPG keys)
|
|
106
|
+
bbdc account me
|
|
107
|
+
|
|
108
|
+
# include user profile and settings when your slug is known
|
|
109
|
+
bbdc account me --user-slug your.user --include-settings
|
|
110
|
+
|
|
111
|
+
# raw account endpoint calls
|
|
112
|
+
bbdc account recent-repos
|
|
113
|
+
bbdc account ssh-keys
|
|
114
|
+
bbdc account gpg-keys
|
|
115
|
+
bbdc account user --user-slug your.user
|
|
116
|
+
bbdc account settings --user-slug your.user
|
|
117
|
+
```
|
|
118
|
+
|
|
95
119
|
List pull requests:
|
|
96
120
|
|
|
97
121
|
```bash
|
|
@@ -162,6 +186,24 @@ bbdc pr review complete -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz 123 --comme
|
|
|
162
186
|
bbdc pr comments add -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz 123 --text "LGTM"
|
|
163
187
|
```
|
|
164
188
|
|
|
189
|
+
## Batch operations
|
|
190
|
+
|
|
191
|
+
Batch commands live under `bbdc pr batch ...` and read a JSON list of items from `--file` (or `-` for stdin). You can
|
|
192
|
+
provide `--project` and `--repo` as defaults for each item.
|
|
193
|
+
|
|
194
|
+
Example batch approvals (`approve.json`):
|
|
195
|
+
|
|
196
|
+
```json
|
|
197
|
+
[
|
|
198
|
+
{"pr_id": 123},
|
|
199
|
+
{"pr_id": 456}
|
|
200
|
+
]
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
bbdc pr batch approve -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz -f approve.json
|
|
205
|
+
```
|
|
206
|
+
|
|
165
207
|
Diffs and commits:
|
|
166
208
|
|
|
167
209
|
```bash
|
|
@@ -172,6 +214,20 @@ bbdc pr diff-file -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz 123 src/main.py
|
|
|
172
214
|
|
|
173
215
|
See the full command reference in `docs/CLI.md` and usage examples in `docs/examples.md`.
|
|
174
216
|
|
|
217
|
+
## Codex integration
|
|
218
|
+
|
|
219
|
+
If teammates will use this through Codex with natural language:
|
|
220
|
+
|
|
221
|
+
1. Distribute this CLI through PyPI (`bbdc-cli`).
|
|
222
|
+
2. Distribute the Codex skill separately (for example, git repo cloned into `$CODEX_HOME/skills/bbdc-cli`).
|
|
223
|
+
3. Keep the skill's command inventory synced with this repo's `bbdc_cli/__main__.py`.
|
|
224
|
+
|
|
225
|
+
Recommended split of responsibilities:
|
|
226
|
+
- This repo: command behavior, API semantics, package distribution.
|
|
227
|
+
- Skill repo: natural-language intent mapping, execution policy, Codex-specific prompting.
|
|
228
|
+
|
|
229
|
+
This separation is the correct approach and avoids coupling Codex behavior to package release timing.
|
|
230
|
+
|
|
175
231
|
## Troubleshooting
|
|
176
232
|
|
|
177
233
|
`BITBUCKET_SERVER` must end with `/rest`.
|
|
@@ -60,19 +60,43 @@ export BITBUCKET_API_TOKEN="YOUR_TOKEN"
|
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
62
|
bbdc doctor
|
|
63
|
+
# machine-readable output
|
|
64
|
+
bbdc doctor --json
|
|
63
65
|
```
|
|
64
66
|
|
|
65
67
|
If this succeeds, your base URL + token are working.
|
|
66
68
|
|
|
69
|
+
Optional (for account profile/settings lookups):
|
|
70
|
+
|
|
71
|
+
- `BITBUCKET_USER_SLUG`: your Bitbucket user slug
|
|
72
|
+
|
|
67
73
|
## Common commands
|
|
68
74
|
|
|
69
75
|
Show help:
|
|
70
76
|
|
|
71
77
|
```bash
|
|
72
78
|
bbdc --help
|
|
79
|
+
bbdc account --help
|
|
73
80
|
bbdc pr --help
|
|
74
81
|
```
|
|
75
82
|
|
|
83
|
+
Get information about your authenticated account:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# consolidated snapshot (recent repos + SSH keys + GPG keys)
|
|
87
|
+
bbdc account me
|
|
88
|
+
|
|
89
|
+
# include user profile and settings when your slug is known
|
|
90
|
+
bbdc account me --user-slug your.user --include-settings
|
|
91
|
+
|
|
92
|
+
# raw account endpoint calls
|
|
93
|
+
bbdc account recent-repos
|
|
94
|
+
bbdc account ssh-keys
|
|
95
|
+
bbdc account gpg-keys
|
|
96
|
+
bbdc account user --user-slug your.user
|
|
97
|
+
bbdc account settings --user-slug your.user
|
|
98
|
+
```
|
|
99
|
+
|
|
76
100
|
List pull requests:
|
|
77
101
|
|
|
78
102
|
```bash
|
|
@@ -143,6 +167,24 @@ bbdc pr review complete -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz 123 --comme
|
|
|
143
167
|
bbdc pr comments add -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz 123 --text "LGTM"
|
|
144
168
|
```
|
|
145
169
|
|
|
170
|
+
## Batch operations
|
|
171
|
+
|
|
172
|
+
Batch commands live under `bbdc pr batch ...` and read a JSON list of items from `--file` (or `-` for stdin). You can
|
|
173
|
+
provide `--project` and `--repo` as defaults for each item.
|
|
174
|
+
|
|
175
|
+
Example batch approvals (`approve.json`):
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
[
|
|
179
|
+
{"pr_id": 123},
|
|
180
|
+
{"pr_id": 456}
|
|
181
|
+
]
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
bbdc pr batch approve -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz -f approve.json
|
|
186
|
+
```
|
|
187
|
+
|
|
146
188
|
Diffs and commits:
|
|
147
189
|
|
|
148
190
|
```bash
|
|
@@ -153,6 +195,20 @@ bbdc pr diff-file -p GL_KAIF_APP-ID-2866825_DSG -r mercury-viz 123 src/main.py
|
|
|
153
195
|
|
|
154
196
|
See the full command reference in `docs/CLI.md` and usage examples in `docs/examples.md`.
|
|
155
197
|
|
|
198
|
+
## Codex integration
|
|
199
|
+
|
|
200
|
+
If teammates will use this through Codex with natural language:
|
|
201
|
+
|
|
202
|
+
1. Distribute this CLI through PyPI (`bbdc-cli`).
|
|
203
|
+
2. Distribute the Codex skill separately (for example, git repo cloned into `$CODEX_HOME/skills/bbdc-cli`).
|
|
204
|
+
3. Keep the skill's command inventory synced with this repo's `bbdc_cli/__main__.py`.
|
|
205
|
+
|
|
206
|
+
Recommended split of responsibilities:
|
|
207
|
+
- This repo: command behavior, API semantics, package distribution.
|
|
208
|
+
- Skill repo: natural-language intent mapping, execution policy, Codex-specific prompting.
|
|
209
|
+
|
|
210
|
+
This separation is the correct approach and avoids coupling Codex behavior to package release timing.
|
|
211
|
+
|
|
156
212
|
## Troubleshooting
|
|
157
213
|
|
|
158
214
|
`BITBUCKET_SERVER` must end with `/rest`.
|