{"action":"opened","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/4799","repository_url":"https://api.github.com/repos/wp-cli/wp-cli","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/4799/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/4799/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/4799/events","html_url":"https://github.com/wp-cli/wp-cli/issues/4799","id":323301012,"number":4799,"title":"Make boolean check-type commands consistent","user":{"login":"schlessera","id":83631,"avatar_url":"https://avatars1.githubusercontent.com/u/83631?v=4","gravatar_id":"","url":"https://api.github.com/users/schlessera","html_url":"https://github.com/schlessera","followers_url":"https://api.github.com/users/schlessera/followers","following_url":"https://api.github.com/users/schlessera/following{/other_user}","gists_url":"https://api.github.com/users/schlessera/gists{/gist_id}","starred_url":"https://api.github.com/users/schlessera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlessera/subscriptions","organizations_url":"https://api.github.com/users/schlessera/orgs","repos_url":"https://api.github.com/users/schlessera/repos","events_url":"https://api.github.com/users/schlessera/events{/privacy}","received_events_url":"https://api.github.com/users/schlessera/received_events","type":"User","site_admin":false},"labels":[{"id":123538114,"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/scope:documentation","name":"scope:documentation","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/wp-cli/wp-cli/milestones/55","html_url":"https://github.com/wp-cli/wp-cli/milestone/55","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/milestones/55/labels","id":2962748,"number":55,"title":"2.0.0","description":null,"creator":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars1.githubusercontent.com/u/36432?v=4","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":44,"state":"open","created_at":"2017-12-06T19:41:12Z","updated_at":"2018-05-15T16:52:51Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-05-15T16:52:51Z","updated_at":"2018-05-15T16:52:51Z","closed_at":null,"author_association":"MEMBER","body":"Boolean check-type commands, like `wp cli has-command` or `wp comment exists` should be consistent in their usage of exit codes and generated output.\r\n\r\nI think it is obvious that such commands should return an exit code:\r\n- 0: success\r\n- 1: failure\r\n\r\nThe question is whether they should also produce output and whether that should be produced in all cases, or only under certain circumstances.\r\n\r\nOnce this has been decided, the commands need to be adapted, and the consistency rules should be encoded in the command cookbook."}}
{"actor":{"display_login":"schlessera"}}