Commit dbc20ea
gottem-cli: --formats + --return-links flags (0.1.7 -> 0.1.8)
Surfaces the v0.1.7 server features (Format::Markdown/Html/Text/
Screenshot via content_by_format, return_links via response.links) on
the CLI's `--remote` path:
gottem fetch --remote \
--formats markdown,html,screenshot \
--return-links \
https://example.com
- `--formats` accepts a comma-separated list; values are normalized
to lowercase + trimmed before send. Unknown formats are dropped
server-side (forward-compat).
- `--return-links` toggles the sibling `links` response field
(spider_service convention).
- Output rendering: multi-format responses print one labelled section
per format; single-format / legacy keeps the existing `content`
output unchanged. Links print at the tail with a stderr header
showing the count.
- Local-mode fetch is unchanged; transform pipeline lives in
gottem-cloud, so `--formats` is `--remote`-only for now.
Verified live against api.gottem.dev: probe with the new flags lands
a structured `{"error":"authentication required","code":"AUTH_REQUIRED"}`
401 — request shape accepted by the v0.1.7 server.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9c2439f commit dbc20ea
3 files changed
Lines changed: 62 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
129 | 148 | | |
130 | 149 | | |
131 | 150 | | |
| |||
383 | 402 | | |
384 | 403 | | |
385 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
386 | 421 | | |
387 | 422 | | |
388 | 423 | | |
| |||
412 | 447 | | |
413 | 448 | | |
414 | 449 | | |
415 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
416 | 475 | | |
417 | 476 | | |
418 | 477 | | |
| |||
0 commit comments