Skip to content
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

ESC CLI output is not valid Json #45

Closed
TomBalt opened this issue Dec 4, 2020 · 3 comments
Closed

ESC CLI output is not valid Json #45

TomBalt opened this issue Dec 4, 2020 · 3 comments

Comments

@TomBalt
Copy link

TomBalt commented Dec 4, 2020

Hey,

I was trying to use esc cli tool and can't really use it in automation, since it gives a not valid json output.

Having this behavior it's really difficult to extract values.

@YoEight
Copy link
Member

YoEight commented Dec 4, 2020

Weird, when you run a command, did you use the --output json option like this:

esc --output json ...

?

@TomBalt
Copy link
Author

TomBalt commented Dec 4, 2020

Actually it's working.
However, I would expect that "--output" option be available in the help section for each command and that can be put in any place. As now it has a static place - after esc.

If you ran command "esc infra networks list --help" it doesn't actually show that there is an option to use --output:
esc-infra-networks-list 1.20.12
List networks of an organization, given a project

USAGE:
esc infra networks list [OPTIONS]

FLAGS:
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
--org-id The organization id the networks relate to [default: ]
--project-id The project id the networks relate to [default: ]

Anyway, since it's working I will close the case.

Thank you for your help @YoEight

@TomBalt TomBalt closed this as completed Dec 4, 2020
@YoEight
Copy link
Member

YoEight commented Dec 4, 2020

@TomBalt This is a fair critic and I'll see what I can do to make that option available at all level. UX is paramount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants