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

Inconsistent JSON flag usage across the CLI #1375

Open
seanhamlin opened this issue Jan 22, 2025 · 1 comment
Open

Inconsistent JSON flag usage across the CLI #1375

seanhamlin opened this issue Jan 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@seanhamlin
Copy link

Version

$ fastly version
Fastly CLI version v10.17.1 (0ce75689)
Built with go version go1.22.9 linux/amd64 (2025-01-22)

What happened

I am writing tooling to which uses the Fastly CLI, and noticed there is inconsistent json output format flags across the various commands.

e.g.

$ fastly stats historical -h
...
      --format=FORMAT          Output format (json)

and

$ fastly service list -h
...
  -j, --json               Render output as JSON

Ideal solution

Standardise on one flag for all commands. This is a developer experience quality of life feature.

@seanhamlin seanhamlin added the bug Something isn't working label Jan 22, 2025
@kpfleming
Copy link
Contributor

Thanks for the report! That's definitely a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants