Skip to content

Support jsonpath, go-template, custom-columns, and name output formats#76

Merged
davidnortonjr merged 1 commit into
mainfrom
issue-73-jsonpath-output
Apr 8, 2026
Merged

Support jsonpath, go-template, custom-columns, and name output formats#76
davidnortonjr merged 1 commit into
mainfrom
issue-73-jsonpath-output

Conversation

@davidnortonjr

Copy link
Copy Markdown
Member

Summary

  • Detects -o jsonpath=..., -o jsonpath-as-json=..., -o jsonpath-file=..., -o go-template=..., -o go-template-file=..., -o custom-columns=..., -o custom-columns-file=..., and -o name as a formatRaw output type
  • Routes raw output through a line-prefixed formatter that prepends the context name to each line (same behaviour as logs and api-versions)
  • Renames formatLogsOutputformatRawOutput to reflect its broader use

Closes #73

These formats produce raw text rather than structured K8s resources, so
they are routed through a line-prefixed formatter that prepends the context
name to each output line. Rename formatLogsOutput to formatRawOutput to
reflect its broader use.

Closes #73
@davidnortonjr davidnortonjr merged commit 90898c2 into main Apr 8, 2026
5 checks passed
@davidnortonjr davidnortonjr deleted the issue-73-jsonpath-output branch April 8, 2026 20:39
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.

Support jsonpath output

1 participant