Skip to content

feat(cli) add --format option to view query command#24

Merged
indexzero merged 2 commits intomainfrom
feat/view-query-format
Feb 2, 2026
Merged

feat(cli) add --format option to view query command#24
indexzero merged 2 commits intomainfrom
feat/view-query-format

Conversation

@indexzero
Copy link
Owner

Add support for multiple output formats in view query:

  • ndjson/jsonl: One JSON object per line (default, streaming)
  • lines: Plain text values for shell piping
  • json: Complete JSON array for programmatic use

The lines format outputs strings as-is and other types as JSON,
with tab-separated values for multi-field records. This enables
shell pipeline integration like sort, uniq, wc, and xargs.

indexzero and others added 2 commits February 1, 2026 23:20
Add support for multiple output formats in view query:
- ndjson: One JSON object per line (default, streaming)
- lines: Plain text values for shell piping
- json: Complete JSON array for programmatic use

The lines format outputs strings as-is and other types as JSON,
with tab-separated values for multi-field records. This enables
shell pipeline integration like sort, uniq, wc, and xargs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add jsonl as an accepted format for --format option, normalized
internally to jsonl as the canonical format with ndjson as alias.
Both formats produce identical output (one JSON object per line).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@indexzero indexzero merged commit 582e357 into main Feb 2, 2026
1 check passed
@indexzero indexzero deleted the feat/view-query-format branch February 2, 2026 04:29
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