Adds detail enhancement for downstream tooling to consume full note - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
--fullflag totodo detailthat returns the complete companion-note body in a single call, removing the need for callers to reconstruct the note path and read the file themselves. Completes the detail enhancement for downstream tooling that consumes full note content.What's new
todo detail --full- Prints the entire companion-note body in human output instead of the 20-line preview.todo detail --json --full- Emits the full note text in a newnote_bodyfield.DetailOptionsnow carries aFullboolean andDetailResultcarries aNoteBodystring.Usage
todo detail --full TSK-001todo detail --json --full TSK-001note_bodytodo detail --lines 5 TSK-001Behavior changes / guardrails
--linesis ignored when--fullis set.--no-notestill wins:--full --no-noteproduces no note output.note_previewandnote_preview_truncatedare omitted from JSON output under--full.detailremains read-only;last_updatedis never bumped.NotePathresolution.Testing
--no-note, symlinked notes, and read-only behavior.make checkruns fmt, vet, lint, and tests; all green.