Skip to content

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

Open
Julian Gutierrez Oschmann (juli4n) wants to merge 1 commit into
agent-substrate:mainfrom
juli4n:kubectl-ate-get-worker
Open

Print single-resource output as a bare object, not a list.#1627
Julian Gutierrez Oschmann (juli4n) wants to merge 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.
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