{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/49280","repository_url":"https://api.github.com/repos/Homebrew/homebrew","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/49280/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/49280/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/49280/events","html_url":"https://github.com/Homebrew/homebrew/pull/49280","id":134433228,"number":49280,"title":"Add new command: brew needs <formula>","user":{"login":"xoolive","id":1360812,"avatar_url":"https://avatars.githubusercontent.com/u/1360812?v=3","gravatar_id":"","url":"https://api.github.com/users/xoolive","html_url":"https://github.com/xoolive","followers_url":"https://api.github.com/users/xoolive/followers","following_url":"https://api.github.com/users/xoolive/following{/other_user}","gists_url":"https://api.github.com/users/xoolive/gists{/gist_id}","starred_url":"https://api.github.com/users/xoolive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xoolive/subscriptions","organizations_url":"https://api.github.com/users/xoolive/orgs","repos_url":"https://api.github.com/users/xoolive/repos","events_url":"https://api.github.com/users/xoolive/events{/privacy}","received_events_url":"https://api.github.com/users/xoolive/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-17T23:28:14Z","updated_at":"2016-02-19T07:56:19Z","closed_at":"2016-02-19T07:56:19Z","pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/49280","html_url":"https://github.com/Homebrew/homebrew/pull/49280","diff_url":"https://github.com/Homebrew/homebrew/pull/49280.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/49280.patch"},"body":"All commands investigating dependencies do not seem to go backward.\r\n\r\nThis command would recursively print, for each argument passed, all the formulas that have this argument listed as a direct or indirect dependency.\r\n\r\nExemple of usage:\r\n~~~sh\r\npr-needs $ brew needs harfbuzz\r\npango\r\n  fontforge\r\n  imagemagick (pango optional)\r\n~~~\r\n\r\nThe purpose here is to determine whether `harfbuzz` would be a formula to remove or not, based on other formulas using it as a dependency."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/186108333","html_url":"https://github.com/Homebrew/homebrew/pull/49280#issuecomment-186108333","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/49280","id":186108333,"user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"created_at":"2016-02-19T07:56:19Z","updated_at":"2016-02-19T07:56:19Z","body":"> Let's close this PR and open two new ones: one for the fixes to uses --installed/--recursive behavior, and one for the new --tree feature, so we can evaluate them separately, and other people coming to the PR don't need to read the extra background on needs. And might want to hold off on writing too much code for the tree version until we get the --installed behavior sorted out.\r\n\r\nAgreed here. Thanks for the PR, we do really appreciate it and look forward to more :bow: "}}