Skip to content

[v26.1.x] rpk: add root '--print-tree' flag - #30834

Merged
r-vasquez merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30380-v26.1.x-629
Jun 17, 2026
Merged

[v26.1.x] rpk: add root '--print-tree' flag#30834
r-vasquez merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30380-v26.1.x-629

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #30380

Emit the full rpk command tree as a single
JSON document. The intended consumer is LLM
or automation tooling that needs to discover
rpk's surface (commands, flags, types,
defaults, examples) without parsing the
human-oriented --help output.

The walk runs against the live cobra tree, so
plugins and platform-dependent commands that
are mounted before Execute() are included
automatically. Hidden commands and hidden
flags are excluded.

(cherry picked from commit fa873b3)
@vbotbuildovich
vbotbuildovich requested review from a team, kbatuigas and r-vasquez as code owners June 17, 2026 15:02
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Jun 17, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 17, 2026
@r-vasquez
r-vasquez enabled auto-merge June 17, 2026 15:02
@r-vasquez
r-vasquez merged commit d40b519 into redpanda-data:v26.1.x Jun 17, 2026
25 checks passed
@tyson-redpanda tyson-redpanda modified the milestones: v26.1.x-next, v26.1.11 Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build area/rpk kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants