-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CSV export alongisde text/json #1365
Comments
Any chance of this? |
Chance of what? Can you let me know a bit more about your point ?
…On Mon, Jan 8, 2024, 05:00 Justin ***@***.***> wrote:
Any chance of this?
—
Reply to this email directly, view it on GitHub
<#1365 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCZN2V27IN52EPZF75LJMQLYNND4ZAVCNFSM6AAAAAAXAUCAFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGI3TINBXG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The point is to have CSV as an output option, that is all. Any chance of it being implemented is the question. |
The code is not written by me but you can ask @danaelhe , she solved the
problem, i guess, honestly stranger with codes here
…On Mon, Jan 8, 2024, 06:18 Justin ***@***.***> wrote:
The point is to have CSV as an output option, that is all. Any chance of
it being implemented is the question.
—
Reply to this email directly, view it on GitHub
<#1365 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCZN2VZXXCAYSSEIJEJXPALYNNM7PAVCNFSM6AAAAAAXAUCAFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGMYTMOBTGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi there and thank you for bubbling this back up! I've used third party tools such as json2csv to accomplish this. Something like: |
I haven't tried json2csv but if that can be integrated into doctl that would be great. I'm trying to get a list of snapshots via |
Oh yes, I was able to do that with json2csv like this:
This wouldn't be a straightforward feature to integrate in doctl as that logic is baked into the Go CLI package we use, Cobra. Since there are numerous options of cli tools that can convert the outputted JSON into a CSV, we consider that a viable workaround in the meantime. |
What is the problem this feature would solve? Please describe.
I'm always frustrated when I want to work with the data exported from doctl and I can't output it in a basic CSV output that is easy to parse in many scripts.
Describe the solution you'd like
CSV output
Additional context
None
The text was updated successfully, but these errors were encountered: