-
Notifications
You must be signed in to change notification settings - Fork 93
Closed
Labels
command:userRelated to 'user' commandRelated to 'user' commandcontributor-daygood-first-issueGood for newcomersGood for newcomers
Milestone
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
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.
Metadata
Metadata
Assignees
Labels
command:userRelated to 'user' commandRelated to 'user' commandcontributor-daygood-first-issueGood for newcomersGood for newcomers