Skip to content

feat(list): add name, due, and updated to JSON output#84

Merged
anshulsao merged 1 commit into
mainfrom
feat/list-json-name-due-updated
Jun 29, 2026
Merged

feat(list): add name, due, and updated to JSON output#84
anshulsao merged 1 commit into
mainfrom
feat/list-json-name-due-updated

Conversation

@anshulsao

Copy link
Copy Markdown
Contributor

What

Enrich the machine-readable flow list ... --format json output so it is self-sufficient for scripts and integrations:

  • flow list tasks --format json now includes:
    • name — the task title
    • due — the raw due date (alongside the existing humanized due_label / due_in_days)
    • updated — the last-updated timestamp
  • flow list projects --format json now includes:
    • name — the project title (regained for parity with tasks)
    • updated — the last-updated timestamp

Why

The JSON list output was missing the entity name and exact timestamps, forcing any consumer to make a second flow show <slug> call per row just to recover a legible title or a precise updated/due value. Carrying these in the list output removes that N+1 round-trip and makes --format json a complete, scriptable view.

Table and TSV output are unchanged.

Tests

  • flow list tasks --format json test asserts name; new test asserts the raw due value.
  • flow list projects --format json test now asserts name is present.
  • Full suite green (go test ./...).

🤖 Generated with Claude Code

`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>
@anshulsao anshulsao force-pushed the feat/list-json-name-due-updated branch from d69b12a to 4901cf1 Compare June 29, 2026 18:02
@anshulsao anshulsao merged commit 9fa9987 into main Jun 29, 2026
3 checks passed
@anshulsao anshulsao deleted the feat/list-json-name-due-updated branch June 29, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant