Skip to content

Print single-resource output as a bare object, not a list. - #1627

Merged
Haven Xia (HavenXia) merged 1 commit into
agent-substrate:mainfrom
juli4n:kubectl-ate-get-worker
Sep 14, 2026
Merged

Haven Xia (HavenXia) merged 1 commit into
agent-substrate:mainfrom
juli4n:kubectl-ate-get-worker

Conversation

@juli4n

Copy link
Copy Markdown
Collaborator

Affects get , create, resume, pause, and suspend for actors, actor templates, atespaces, tags, and workers: JSON/YAML no longer wraps a single resource in a List, matching kubectl's convention. Listing (no name, or multiple names) still returns a List.

Also plumb the writer through cmd.OutOrStdout() instead of hardcoding os.Stdout to honor Cobra's writer.

Affects get <name>, create, resume, pause, and suspend for actors,
actor templates, atespaces, tags, and workers: JSON/YAML no longer
wraps a single resource in a List, matching kubectl's convention.
Listing (no name, or multiple names) still returns a List.

Also plumb the writer through cmd.OutOrStdout() instead of
hardcoding os.Stdout to honor Cobra's writer.
@HavenXia
Haven Xia (HavenXia) merged commit 32e08c2 into agent-substrate:main Sep 14, 2026
9 checks passed
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.

2 participants