Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Add JSON output option for fluxctl's list-images and list-workloads #2834

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

trevrosen
Copy link
Contributor

What

A JSON output option for fluxctl list-workloads and fluxctl list-images

Why

Building tooling (such as chatbot functionality) is much easier with a machine-readable output.

Note

I added Testify to the test build b/c I think that the single-line assertions make test code really easy to read. If this is controversial, I can remove. It tends to be the single thing that I use outside of stdlib for tests.

@trevrosen trevrosen changed the title JSON output option for fluxctl's list-images and list-workloads Add JSON output option for fluxctl's list-images and list-workloads Feb 9, 2020
cmd/fluxctl/format.go Outdated Show resolved Hide resolved
@trevrosen trevrosen force-pushed the json-output branch 2 times, most recently from 06d8cfe to 5036864 Compare February 11, 2020 14:01
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splendid! This all looks safe and sound to me. Thank you very much for your first contribution to Flux 💯

@hiddeco hiddeco merged commit 7f79f13 into fluxcd:master Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants