tektoncd / tektoncd/cli

Add field selection and NDJSON streaming for list commands

Open
#2,853 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature
Dominant language
Go
Stars
461
Forks
277
Avg merge
16h 48m
Merged PRs (30d)
95

Description

Summary

AI agents pay per token and lose reasoning capacity with irrelevant output. List commands should support field selection and streaming to minimize context window usage.

Proposal

Field Selection
# Only return specific fields
tkn pipelinerun list --fields name,status,startTime --output json
NDJSON Streaming
# One JSON object per line, streamable
tkn pipelinerun list --output ndjson

This allows agents to process results incrementally without buffering large arrays, and to request only the fields they need.

Acceptance Criteria

  • --fields flag on list commands to select output fields
  • --output ndjson for newline-delimited JSON (one object per line)
  • Works with all resource list commands

/kind feature

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the list command implementations and their current JSON output handling. Trace how all resource list commands format results, then verify that field selection and one-object-per-line NDJSON output work consistently for every list command and satisfy the acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.