Repository navigation
Commit 905ebee
committed
fix(databases): restore -d/--database on context, queries, results
The reorg re-parented `context`/`queries`/`results` under `databases` but the
explicit database target regressed vs 0.26.0:
- `databases context {list,show,pull,push}` had no way to target a database —
active-database only.
- `databases queries list` / `databases results {get,list}` rejected `-d` after
the subcommand; the group-level `database` was only reachable before it
(`databases queries -d X list`), not the expected `... list -d X`.
Make the group `database` arg `global = true` on queries/results (the dispatch
already threads it), and add a `-d/--database` (global) to `context` wired into
its dispatch (explicit override, else the active database). Standardizes on
`--database` (the reorg's convention) rather than the old `--database-id`.
Verified: `context/queries/results list -d <db>` now byte-match the installed
0.26.0's `--database`/`--database-id` output.1 parent 59b4e39 commit 905ebee
2 files changed
Lines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
231 | | - | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
248 | | - | |
| 252 | + | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| |||
0 commit comments