trousseau icon indicating copy to clipboard operation
trousseau copied to clipboard

Support show --to-json

Open Shrhawk opened this issue 6 years ago • 3 comments

In order to work better with python sub process module check_output need to add option --to-json with show option.

Shrhawk avatar Oct 20 '18 13:10 Shrhawk

Hey @Shrhawk

Thanks for taking the time to submit a feature request. I think it's a great idea! I'm currently working on a 1.0.0 version which is gonna bring a lot of changes to the API for the better, including an -o option which will allow you to output any results in the format you wish (planning on yaml, json and toml at the moment)

Just a little more patience :-) If you're in a hurry, implementing this option in the current version of trousseau should be pretty trivial, and I'm happy to guide you through the process of implementing it yourself.

Cheers

oleiade avatar Oct 20 '18 17:10 oleiade

Hey @oleiade i am new to golang and need your help for pr https://github.com/oleiade/trousseau/pull/196 let me know what you think about this pr

Shrhawk avatar Oct 28 '18 12:10 Shrhawk

Hi @Shrhawk,

Sorry for not being reactive (after three years... yeah. I know). I'm gonna adress this the same way as the kubectl command: trousseau show -o json|yaml|plain.

oleiade avatar Aug 17 '21 14:08 oleiade