{"action":"created","comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/comments/80574951","id":80574951,"diff_hunk":"@@ -6,10 +11,32 @@ function __fish_brew_needs_command\n   return 1\n end\n \n+function __fish_brew_needs_services_action\n+  __fish_brew_using_command services\n+\n+  set cmd (commandline -opc)\n+  if test (count $cmd) -le 2\n+    return 0\n+  end\n+  return 1\n+end\n+\n+function __fish_brew_services\n+  brew services list | awk '{if (NR>1) print $1}'","path":"share/completions/brew.fish","position":24,"original_position":24,"commit_id":"c4c1022072180a73104f6afae4ab22618733aa4b","original_commit_id":"c4c1022072180a73104f6afae4ab22618733aa4b","user":{"login":"faho","id":5185367,"avatar_url":"https://avatars.githubusercontent.com/u/5185367?v=3","gravatar_id":"","url":"https://api.github.com/users/faho","html_url":"https://github.com/faho","followers_url":"https://api.github.com/users/faho/followers","following_url":"https://api.github.com/users/faho/following{/other_user}","gists_url":"https://api.github.com/users/faho/gists{/gist_id}","starred_url":"https://api.github.com/users/faho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faho/subscriptions","organizations_url":"https://api.github.com/users/faho/orgs","repos_url":"https://api.github.com/users/faho/repos","events_url":"https://api.github.com/users/faho/events{/privacy}","received_events_url":"https://api.github.com/users/faho/received_events","type":"User","site_admin":false},"body":"Ah, oka, you also need to skip the first line. Isn't there any argument to inhibit that header? (I haven't found fantastic documentation for brew's arguments and have no way to test it)","created_at":"2016-09-26T21:14:54Z","updated_at":"2016-09-26T21:14:54Z","html_url":"https://github.com/fish-shell/fish-shell/pull/3411#discussion_r80574951","pull_request_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411","_links":{"self":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/comments/80574951"},"html":{"href":"https://github.com/fish-shell/fish-shell/pull/3411#discussion_r80574951"},"pull_request":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411"}}},"pull_request":{"url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411","id":86804760,"html_url":"https://github.com/fish-shell/fish-shell/pull/3411","diff_url":"https://github.com/fish-shell/fish-shell/pull/3411.diff","patch_url":"https://github.com/fish-shell/fish-shell/pull/3411.patch","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3411","number":3411,"state":"open","locked":false,"title":"Add brew services completions","user":{"login":"sijad","id":7693001,"avatar_url":"https://avatars.githubusercontent.com/u/7693001?v=3","gravatar_id":"","url":"https://api.github.com/users/sijad","html_url":"https://github.com/sijad","followers_url":"https://api.github.com/users/sijad/followers","following_url":"https://api.github.com/users/sijad/following{/other_user}","gists_url":"https://api.github.com/users/sijad/gists{/gist_id}","starred_url":"https://api.github.com/users/sijad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sijad/subscriptions","organizations_url":"https://api.github.com/users/sijad/orgs","repos_url":"https://api.github.com/users/sijad/repos","events_url":"https://api.github.com/users/sijad/events{/privacy}","received_events_url":"https://api.github.com/users/sijad/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nAdd support for [brew services](https://github.com/Homebrew/homebrew-services).\r\n\r\nI couldn't find a good way to add this option so I made a little change to `__fish_brew_using_command` and also add two other functions. I made things a little complicated I guess. please let me know if anythings need to be changed.\r\n\r\nFixes issue #3410","created_at":"2016-09-26T19:35:36Z","updated_at":"2016-09-26T21:14:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"800baf64b5472dc96625ea25c08e81fcc0817746","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/15","html_url":"https://github.com/fish-shell/fish-shell/milestones/fish%202.4.0","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/15/labels","id":1981232,"number":15,"title":"fish 2.4.0","description":"Items we definitely want included in the 2.4.0 release.","creator":{"login":"krader1961","id":7545917,"avatar_url":"https://avatars.githubusercontent.com/u/7545917?v=3","gravatar_id":"","url":"https://api.github.com/users/krader1961","html_url":"https://github.com/krader1961","followers_url":"https://api.github.com/users/krader1961/followers","following_url":"https://api.github.com/users/krader1961/following{/other_user}","gists_url":"https://api.github.com/users/krader1961/gists{/gist_id}","starred_url":"https://api.github.com/users/krader1961/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krader1961/subscriptions","organizations_url":"https://api.github.com/users/krader1961/orgs","repos_url":"https://api.github.com/users/krader1961/repos","events_url":"https://api.github.com/users/krader1961/events{/privacy}","received_events_url":"https://api.github.com/users/krader1961/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":155,"state":"open","created_at":"2016-09-03T03:22:40Z","updated_at":"2016-09-26T19:53:22Z","due_on":"2016-09-30T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411/commits","review_comments_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411/comments","review_comment_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3411/comments","statuses_url":"https://api.github.com/repos/fish-shell/fish-shell/statuses/c4c1022072180a73104f6afae4ab22618733aa4b","head":{"label":"sijad:brew-services","ref":"brew-services","sha":"c4c1022072180a73104f6afae4ab22618733aa4b","user":{"login":"sijad","id":7693001,"avatar_url":"https://avatars.githubusercontent.com/u/7693001?v=3","gravatar_id":"","url":"https://api.github.com/users/sijad","html_url":"https://github.com/sijad","followers_url":"https://api.github.com/users/sijad/followers","following_url":"https://api.github.com/users/sijad/following{/other_user}","gists_url":"https://api.github.com/users/sijad/gists{/gist_id}","starred_url":"https://api.github.com/users/sijad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sijad/subscriptions","organizations_url":"https://api.github.com/users/sijad/orgs","repos_url":"https://api.github.com/users/sijad/repos","events_url":"https://api.github.com/users/sijad/events{/privacy}","received_events_url":"https://api.github.com/users/sijad/received_events","type":"User","site_admin":false},"repo":{"id":69285348,"name":"fish-shell","full_name":"sijad/fish-shell","owner":{"login":"sijad","id":7693001,"avatar_url":"https://avatars.githubusercontent.com/u/7693001?v=3","gravatar_id":"","url":"https://api.github.com/users/sijad","html_url":"https://github.com/sijad","followers_url":"https://api.github.com/users/sijad/followers","following_url":"https://api.github.com/users/sijad/following{/other_user}","gists_url":"https://api.github.com/users/sijad/gists{/gist_id}","starred_url":"https://api.github.com/users/sijad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sijad/subscriptions","organizations_url":"https://api.github.com/users/sijad/orgs","repos_url":"https://api.github.com/users/sijad/repos","events_url":"https://api.github.com/users/sijad/events{/privacy}","received_events_url":"https://api.github.com/users/sijad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sijad/fish-shell","description":"The user-friendly command line shell.","fork":true,"url":"https://api.github.com/repos/sijad/fish-shell","forks_url":"https://api.github.com/repos/sijad/fish-shell/forks","keys_url":"https://api.github.com/repos/sijad/fish-shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sijad/fish-shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sijad/fish-shell/teams","hooks_url":"https://api.github.com/repos/sijad/fish-shell/hooks","issue_events_url":"https://api.github.com/repos/sijad/fish-shell/issues/events{/number}","events_url":"https://api.github.com/repos/sijad/fish-shell/events","assignees_url":"https://api.github.com/repos/sijad/fish-shell/assignees{/user}","branches_url":"https://api.github.com/repos/sijad/fish-shell/branches{/branch}","tags_url":"https://api.github.com/repos/sijad/fish-shell/tags","blobs_url":"https://api.github.com/repos/sijad/fish-shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sijad/fish-shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sijad/fish-shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/sijad/fish-shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sijad/fish-shell/statuses/{sha}","languages_url":"https://api.github.com/repos/sijad/fish-shell/languages","stargazers_url":"https://api.github.com/repos/sijad/fish-shell/stargazers","contributors_url":"https://api.github.com/repos/sijad/fish-shell/contributors","subscribers_url":"https://api.github.com/repos/sijad/fish-shell/subscribers","subscription_url":"https://api.github.com/repos/sijad/fish-shell/subscription","commits_url":"https://api.github.com/repos/sijad/fish-shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/sijad/fish-shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/sijad/fish-shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/sijad/fish-shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/sijad/fish-shell/contents/{+path}","compare_url":"https://api.github.com/repos/sijad/fish-shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sijad/fish-shell/merges","archive_url":"https://api.github.com/repos/sijad/fish-shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sijad/fish-shell/downloads","issues_url":"https://api.github.com/repos/sijad/fish-shell/issues{/number}","pulls_url":"https://api.github.com/repos/sijad/fish-shell/pulls{/number}","milestones_url":"https://api.github.com/repos/sijad/fish-shell/milestones{/number}","notifications_url":"https://api.github.com/repos/sijad/fish-shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sijad/fish-shell/labels{/name}","releases_url":"https://api.github.com/repos/sijad/fish-shell/releases{/id}","deployments_url":"https://api.github.com/repos/sijad/fish-shell/deployments","created_at":"2016-09-26T19:30:09Z","updated_at":"2016-09-26T19:30:12Z","pushed_at":"2016-09-26T19:30:46Z","git_url":"git://github.com/sijad/fish-shell.git","ssh_url":"git@github.com:sijad/fish-shell.git","clone_url":"https://github.com/sijad/fish-shell.git","svn_url":"https://github.com/sijad/fish-shell","homepage":"http://fishshell.com","size":32499,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fish-shell:master","ref":"master","sha":"662ba60d633cf513af99643a85c8a67f989dc461","user":{"login":"fish-shell","id":1828073,"avatar_url":"https://avatars.githubusercontent.com/u/1828073?v=3","gravatar_id":"","url":"https://api.github.com/users/fish-shell","html_url":"https://github.com/fish-shell","followers_url":"https://api.github.com/users/fish-shell/followers","following_url":"https://api.github.com/users/fish-shell/following{/other_user}","gists_url":"https://api.github.com/users/fish-shell/gists{/gist_id}","starred_url":"https://api.github.com/users/fish-shell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fish-shell/subscriptions","organizations_url":"https://api.github.com/users/fish-shell/orgs","repos_url":"https://api.github.com/users/fish-shell/repos","events_url":"https://api.github.com/users/fish-shell/events{/privacy}","received_events_url":"https://api.github.com/users/fish-shell/received_events","type":"Organization","site_admin":false},"repo":{"id":4279682,"name":"fish-shell","full_name":"fish-shell/fish-shell","owner":{"login":"fish-shell","id":1828073,"avatar_url":"https://avatars.githubusercontent.com/u/1828073?v=3","gravatar_id":"","url":"https://api.github.com/users/fish-shell","html_url":"https://github.com/fish-shell","followers_url":"https://api.github.com/users/fish-shell/followers","following_url":"https://api.github.com/users/fish-shell/following{/other_user}","gists_url":"https://api.github.com/users/fish-shell/gists{/gist_id}","starred_url":"https://api.github.com/users/fish-shell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fish-shell/subscriptions","organizations_url":"https://api.github.com/users/fish-shell/orgs","repos_url":"https://api.github.com/users/fish-shell/repos","events_url":"https://api.github.com/users/fish-shell/events{/privacy}","received_events_url":"https://api.github.com/users/fish-shell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fish-shell/fish-shell","description":"The user-friendly command line shell.","fork":false,"url":"https://api.github.com/repos/fish-shell/fish-shell","forks_url":"https://api.github.com/repos/fish-shell/fish-shell/forks","keys_url":"https://api.github.com/repos/fish-shell/fish-shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fish-shell/fish-shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fish-shell/fish-shell/teams","hooks_url":"https://api.github.com/repos/fish-shell/fish-shell/hooks","issue_events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/events{/number}","events_url":"https://api.github.com/repos/fish-shell/fish-shell/events","assignees_url":"https://api.github.com/repos/fish-shell/fish-shell/assignees{/user}","branches_url":"https://api.github.com/repos/fish-shell/fish-shell/branches{/branch}","tags_url":"https://api.github.com/repos/fish-shell/fish-shell/tags","blobs_url":"https://api.github.com/repos/fish-shell/fish-shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fish-shell/fish-shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fish-shell/fish-shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/fish-shell/fish-shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fish-shell/fish-shell/statuses/{sha}","languages_url":"https://api.github.com/repos/fish-shell/fish-shell/languages","stargazers_url":"https://api.github.com/repos/fish-shell/fish-shell/stargazers","contributors_url":"https://api.github.com/repos/fish-shell/fish-shell/contributors","subscribers_url":"https://api.github.com/repos/fish-shell/fish-shell/subscribers","subscription_url":"https://api.github.com/repos/fish-shell/fish-shell/subscription","commits_url":"https://api.github.com/repos/fish-shell/fish-shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/fish-shell/fish-shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/fish-shell/fish-shell/contents/{+path}","compare_url":"https://api.github.com/repos/fish-shell/fish-shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fish-shell/fish-shell/merges","archive_url":"https://api.github.com/repos/fish-shell/fish-shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fish-shell/fish-shell/downloads","issues_url":"https://api.github.com/repos/fish-shell/fish-shell/issues{/number}","pulls_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls{/number}","milestones_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones{/number}","notifications_url":"https://api.github.com/repos/fish-shell/fish-shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/labels{/name}","releases_url":"https://api.github.com/repos/fish-shell/fish-shell/releases{/id}","deployments_url":"https://api.github.com/repos/fish-shell/fish-shell/deployments","created_at":"2012-05-10T03:00:55Z","updated_at":"2016-09-26T20:53:09Z","pushed_at":"2016-09-26T19:35:36Z","git_url":"git://github.com/fish-shell/fish-shell.git","ssh_url":"git@github.com:fish-shell/fish-shell.git","clone_url":"https://github.com/fish-shell/fish-shell.git","svn_url":"https://github.com/fish-shell/fish-shell","homepage":"http://fishshell.com","size":41729,"stargazers_count":6571,"watchers_count":6571,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":625,"mirror_url":null,"open_issues_count":561,"forks":625,"open_issues":561,"watchers":6571,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411"},"html":{"href":"https://github.com/fish-shell/fish-shell/pull/3411"},"issue":{"href":"https://api.github.com/repos/fish-shell/fish-shell/issues/3411"},"comments":{"href":"https://api.github.com/repos/fish-shell/fish-shell/issues/3411/comments"},"review_comments":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411/comments"},"review_comment":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/3411/commits"},"statuses":{"href":"https://api.github.com/repos/fish-shell/fish-shell/statuses/c4c1022072180a73104f6afae4ab22618733aa4b"}}}}
{"actor":{"display_login":"faho"}}