Add a wp user exists
subcommand
#484
Milestone
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
wp user exists
subcommand
#484
Sounds reasonable 👍 There are already similar commands such as We could consider adding an |
Feature Request
Describe your use case and the problem you are facing
Using
wp user get
writes to stderr when the user doesn't exist, which makes it porcelain, since it needs to be parsed and processed to be able to distinguish between user doesn't exist and unrelated errors.Describe the solution you'd like
There should be a command like
wp user exists
to check whether a user exists or not, returning 0 on success, 1 if it doesn't exist and not write anything to stderr in that case.Like wp plugin is-active which does this for plugins.
The text was updated successfully, but these errors were encountered: