feat: truncate --fields body uniformly (task 0021)
Rule that the `body` extra field truncates at 500 chars like `issue view`, resolving the spec's Principle 3 / Command Surface contradiction. Route the `body` extractor through a new `truncatedBody()` FieldDef so `issue list`, `issue create`, `pr list`, and `search` all present it exactly as the detail views do, and add a `--full` flag to each to suppress truncation, keeping the inline hint's "use --full" promise honest.
This commit was merged in pull request #21.
This commit is contained in:
@@ -15,5 +15,7 @@ Simpler, portable, consistent with the stated reference.
|
||||
## Consequences
|
||||
|
||||
`issue view` and `pr view` both accept `--full` to return untruncated body.
|
||||
`issue list`, `issue create`, `pr list`, and `search` also accept `--full`, since they offer `body` via `--fields` and that field truncates identically (task 0021).
|
||||
The flag keeps the inline hint's "use --full" promise honest on those commands too.
|
||||
`pr diff` truncates at 4000 chars (matching gh-axi's `DIFF_TRUNCATE_LIMIT`); when truncated, a next-step suggestion to rerun with `--full` is prepended.
|
||||
The `full_content` field name and temp-file design from the spec draft are dropped entirely.
|
||||
|
||||
Reference in New Issue
Block a user