Add support for --output flags in config show#199
Conversation
Signed-off-by: FrostByte0x <marcellin.penicaud@gmail.com>
1f434de to
c184a35
Compare
|
Thank you for your PR @FrostByte0x ! Could you just move the code you made into function After that, all good to merge :) |
Signed-off-by: FrostByte0x <271714451+FrostByte0x@users.noreply.github.com>
Signed-off-by: FrostByte0x <271714451+FrostByte0x@users.noreply.github.com>
ec40cc0 to
dd951b6
Compare
|
Done @amstuta, please let me know if this is what you expected. Now the Small update: I've moved the code block at the top of the function to not execute the Table logic. Couple of things I've noticed:
Cheers! |
|
Thanks @FrostByte0x ! Could you check the build that is failing ? You're right regarding the two points you mention, but I think we'll leave the code as-is for now as the WASM code to manage the config will probably be re-written soon ;) |
|
Done @amstuta I brought the same code to it. I also noticed that the cloud shell doesn't have config section, I assume it is just hidden to the user of the cloud shell |
Signed-off-by: FrostByte0x <271714451+FrostByte0x@users.noreply.github.com>
Signed-off-by: FrostByte0x <271714451+FrostByte0x@users.noreply.github.com>
7ca34cf to
396ca3c
Compare
|
Indeed, in fact right now there is nothing you can configure on the cloudshell because authentication is managed automatically, and there is no implementation made to store the preferences. It will be implemented at some point :) |

Description
Add support for output as json to config show
Fixes #196
Type of change
As I was not sure if using a specific display option is by design for the config, this change may not be necessary to the project.
Checklist:
go mod tidyChanges
Current version
Updated
./ovhcloud config show -o json { "default": { "endpoint": "ovh-eu" }, "ovh-eu": { "application_key": "aaaaaaaaaaaaa", "application_secret": "xxxxxxxxxxxxxxx", "consumer_key": "yyyyyyyyyyyyyyyyyyy" } }