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

Feature Request: Output Formats #6

Open
alexclst opened this issue Jul 15, 2021 · 0 comments
Open

Feature Request: Output Formats #6

alexclst opened this issue Jul 15, 2021 · 0 comments

Comments

@alexclst
Copy link

Currently the output of each command is a human-readable table with no other options. This is fine for manual usage, but not for more complex scripting.

The WP-CLI has a notion of output formats, using the --format flag. It would be great if the Local CLI used a similar --format flag. Particularly, output in JSON would be parseable by scripts. I've already automated Local via this CLI and VS Code's Tasks feature. But those simple scripts are to turn on and off sites. To do anything more complex that relies on actually making logical decisions based on, say, if a site is running or not, my scripts would need to parse output from local-cli. Especially as more Local functionality gets exposed by this CLI, the output being friendly to scripting will be more and more useful.

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

1 participant