feat(list): add name, due, and updated to JSON output#84
Merged
Conversation
`flow list tasks --format json` now includes the task `name`, the raw `due` date (alongside the existing humanized `due_label`/`due_in_days`), and the `updated` timestamp. `flow list projects --format json` now includes `name` and `updated` (projects regain `name` for parity with tasks). This makes the `--format json` list output self-sufficient for scripts and integrations, which otherwise had to call `flow show` per row just to recover an entity's title or an exact timestamp. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
d69b12a to
4901cf1
Compare
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.
What
Enrich the machine-readable
flow list ... --format jsonoutput so it is self-sufficient for scripts and integrations:flow list tasks --format jsonnow includes:name— the task titledue— the raw due date (alongside the existing humanizeddue_label/due_in_days)updated— the last-updated timestampflow list projects --format jsonnow includes:name— the project title (regained for parity with tasks)updated— the last-updated timestampWhy
The JSON list output was missing the entity
nameand exact timestamps, forcing any consumer to make a secondflow show <slug>call per row just to recover a legible title or a preciseupdated/duevalue. Carrying these in the list output removes that N+1 round-trip and makes--format jsona complete, scriptable view.Table and TSV output are unchanged.
Tests
flow list tasks --format jsontest assertsname; new test asserts the rawduevalue.flow list projects --format jsontest now assertsnameis present.go test ./...).🤖 Generated with Claude Code