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

Introduce WP-CLI stream command #499

Closed
westonruter opened this issue May 2, 2014 · 7 comments
Closed

Introduce WP-CLI stream command #499

westonruter opened this issue May 2, 2014 · 7 comments

Comments

@westonruter
Copy link
Contributor

It would be really cool if Stream data could be queried via WP-CLI, and if settings could be updated.

For example, there should be a wp stream log command that takes the filter arguments like --author=1 or --context=sidebars.

Also, a cool use case would be something like wp stream log --tail which would output a continual stream of entries as they come in. The PHP process would keep running until Ctrl-C. Basically like Heartbeat on the command line. You could then pipe the results into something else.

@westonruter
Copy link
Contributor Author

Not sure how this would mesh with the Stream Data Exporter plugin, i.e. which would be responsible for what.

@shadyvb
Copy link
Contributor

shadyvb commented May 20, 2014

@westonruter Can't see an intersection unless you're talking about a wp stream export command.

@westonruter
Copy link
Contributor Author

Just that wp stream log really would do the exact same thing as the exporter, but just at the CLI level.

@fjarrett
Copy link
Contributor

I've created a Query Reference in our Wiki that can be used as a guide when using the WP-CLI command.

@fjarrett
Copy link
Contributor

Released in 2.0.3

@szepeviktor
Copy link
Contributor

Could you please include the Query Ref. as PHP-doc?
E.g. https://github.com/wp-cli/wp-cli/blob/master/php/commands/post.php#L218-L278

@fjarrett
Copy link
Contributor

Hi @szepeviktor, thanks for the suggestion.

Would you be willing to provide a pull request for this?

We have Query Parameters documented in the wiki. Otherwise we will just add these to the docblock when we get around to it.

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

No branches or pull requests

4 participants