feat(flux get): add --output flag, yaml only#5782
feat(flux get): add --output flag, yaml only#5782mtfurlan wants to merge 1 commit intofluxcd:mainfrom
Conversation
Maybe a warning on stderr would be nice, but if you're doing all resources it's going to be quite hard to check.
It doesn't panic, but it does assume that header[i] maps to row[i], so if headers is short, then it just won't add the row
|
e7b18ee to
811cc25
Compare
Copied the flag syntax from kubectl --output so it can be extended later without breaking changes. It's not integrated terribly well, but the next step would be to abstract the printing so we can switch out printers more cleanly and also pick which information is rendered for each printing format, and I do not know go or this codebase well enough to do that yet. Signed-off-by: Mara Furland <mara@fur.land>
811cc25 to
e574419
Compare
|
For get commands the |
|
I don't disagree, but the requests for this have existed for a few years and this is still a lot better than the current state. If you can help me with a plan I can spend a little more time trying to make it do more real yaml output. |
Copied the flag syntax from kubectl --output so it can be extended later
without breaking changes.
It's not integrated terribly well, but the next step would be to
abstract the printing so we can switch out printers more cleanly and
also pick which information is rendered for each printing format, and I
do not know go or this codebase well enough to do that yet.
Signed-off-by: Mara Furland mara@fur.land