{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1826","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1826/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1826/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1826/events","html_url":"https://github.com/wp-cli/wp-cli/pull/1826","id":74339487,"number":1826,"title":"Add --format parameter to `url` subcommands","user":{"login":"scribu","id":225715,"avatar_url":"https://avatars.githubusercontent.com/u/225715?v=3","gravatar_id":"","url":"https://api.github.com/users/scribu","html_url":"https://github.com/scribu","followers_url":"https://api.github.com/users/scribu/followers","following_url":"https://api.github.com/users/scribu/following{/other_user}","gists_url":"https://api.github.com/users/scribu/gists{/gist_id}","starred_url":"https://api.github.com/users/scribu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scribu/subscriptions","organizations_url":"https://api.github.com/users/scribu/orgs","repos_url":"https://api.github.com/users/scribu/repos","events_url":"https://api.github.com/users/scribu/events{/privacy}","received_events_url":"https://api.github.com/users/scribu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T11:57:51Z","updated_at":"2015-05-08T14:43:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1826","html_url":"https://github.com/wp-cli/wp-cli/pull/1826","diff_url":"https://github.com/wp-cli/wp-cli/pull/1826.diff","patch_url":"https://github.com/wp-cli/wp-cli/pull/1826.patch"},"body":"Currently, when you do `wp post url 123`, you get the URL - nothing more, nothing less. This is great for bash scripting. However, when you want to get multiple URLs, you probably want to know which URL belongs to which post ID.\r\n\r\nThe same argument holds for the other subcommands: `term url`, `comment url`, `site url`.\r\n\r\nTODO:\r\n\r\n* [ ] decide if the id field should simply be \"id\" or `$obj_id_key`"},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/100254973","html_url":"https://github.com/wp-cli/wp-cli/pull/1826#issuecomment-100254973","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1826","id":100254973,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","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},"created_at":"2015-05-08T14:43:01Z","updated_at":"2015-05-08T14:43:01Z","body":"Why not `wp post list --fields=id,url` ?"}}