{"action":"created","comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/comments/172695912","pull_request_review_id":101757833,"id":172695912,"diff_hunk":"@@ -1,104 +1,123 @@\n-# Completions for Gentoo's equery tool\n-\n-# Author: Tassilo Horn <tassilo@member.fsf.org>\n-\n-function __fish_equery_print_installed_pkgs -d 'Prints completions for installed packages on the system from /var/db/pkg'\n- if test -d /var/db/pkg\n-   find /var/db/pkg/ -type d | cut -d'/' -f5-6 | sort -u | sed 's/-[0-9]\\{1,\\}\\..*$//'\n-   return\n- end\n-end\n-\n-function __fish_equery_print_all_pkgs -d 'Prints completions for all available packages on the system from /usr/portage'\n- if test -d /usr/portage\n-   find /usr/portage/ -maxdepth 2 -type d | cut -d'/' -f4-5 | sed 's/^\\(distfiles\\|profiles\\|eclass\\).*$//' | sort -u | sed 's/-[0-9]\\{1,\\}\\..*$//'\n-   return\n- end\n-end\n-\n-function __fish_equery_print_all_categories -d 'Prints completions for all available categories on the system from /usr/portage'\n- if test -d /usr/portage\n-   find /usr/portage/ -maxdepth 1 -type d | cut -d'/' -f4 | sed 's/^\\(distfiles\\|profiles\\|eclass\\).*$//' | sort -u | sed 's/-[0-9]\\{1,\\}\\..*$//'\n-   return\n- end\n+# TODO unused\n+function __fish_equery_print_format\n+\tprintf \"%s\\t%s\\n\" \\\n+\t\t'$cp'           \"Contains the category and the package name only (e.g 'app-portage/gentoolkit').\" \\\n+\t\t'$cpv'          \"Contains the category, the package name and the full version (e.g. 'app-portage/gentoolkit-0.3.0_rc10-r1').\" \\\n+\t\t'$category'     \"Contains just the category (e.g. 'app-portage').\" \\\n+\t\t'$name'         \"Contains just the package name (e.g. 'gentoolkit').\" \\\n+\t\t'$version'      \"Contains the package version (without the revision) (e.g. '0.3.0_rc10').\" \\\n+\t\t'$revision'     \"Contains the package revision (e.g. 'r1').\" \\\n+\t\t'$fullversion'  \"Contains the package version including its revision (e.g. '0.3.0_rc10-r1').\" \\\n+\t\t'$slot'         \"Contains the package's slot.\" \\\n+\t\t'$repo'         \"Contains the name of the package's repository (e.g. 'gentoo').\" \\\n+\t\t'$mask'         \"The Mask-status field (~M-??).\" \\\n+\t\t'$mask2'        \"Contains a verbose description of the packages masking status.\" \\\n+\t\t'$location'     \"The Location field (IPO-).\"\n end\n \n-#########################################################################\n-# Global Opts\n-complete -c equery -s q -l quit -d \"causes minimal output to be emitted\"\n-complete -c equery -s C -l nocolor -d \"turns off colours\"\n-complete -c equery -s h -l help -d \"displays a help summary\"\n-complete -c equery -s V -l version -d \"displays the equery version\"\n+## Global Opts\n+complete -c equery -s h -l help -d \"displays a help message\"\n+complete -c equery -s q -l quiet -d \"minimal output\"\n+complete -c equery -s C -l no-color -d \"turns off colors\"\n complete -c equery -s N -l no-pipe -d \"turns off pipe detection\"\n-# END Global Opts\n-#########################################################################\n-\n-#########################################################################\n-# Subcommands\n-complete -c equery -n '__fish_use_subcommand' -xa 'belongs\\t\"'(_ \"list all packages owning file(s)\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'check\\t\"'(_ \"check MD5sums and timestamps of package\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'depends\\t\"'(_ \"list all packages depending on specified package\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'depgraph\\t\"'(_ \"display a dependency tree for package\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'files\\t\"'(_ \"list files owned by package\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'hasuse\\t\"'(_ \"list all packages with specified useflag\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'list\\t\"'(_ \"list all packages matching pattern\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'size\\t\"'(_ \"print size of files contained in package\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'uses\\t\"'(_ \"display USE flags for package\")'\"'\n-complete -c equery -n '__fish_use_subcommand' -xa 'which\\t\"'(_ \"print full path to ebuild for package\")'\"'\n-# END Subcommands\n-#########################################################################\n-\n-#########################################################################\n-# Local opts\n+complete -c equery -s V -l version -d \"display version information\"\n+\n+## Subcommands\n+complete -c equery -n '__fish_use_subcommand' -xa 'belongs'     -d '\"'(_ 'list all packages owning file(s)')'\"'","path":"share/completions/equery.fish","position":75,"original_position":75,"commit_id":"5a33b8ac2a299fa5c38bdb602a7fc97ed9541cff","original_commit_id":"5a33b8ac2a299fa5c38bdb602a7fc97ed9541cff","user":{"login":"drwilly","id":826152,"avatar_url":"https://avatars1.githubusercontent.com/u/826152?v=4","gravatar_id":"","url":"https://api.github.com/users/drwilly","html_url":"https://github.com/drwilly","followers_url":"https://api.github.com/users/drwilly/followers","following_url":"https://api.github.com/users/drwilly/following{/other_user}","gists_url":"https://api.github.com/users/drwilly/gists{/gist_id}","starred_url":"https://api.github.com/users/drwilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwilly/subscriptions","organizations_url":"https://api.github.com/users/drwilly/orgs","repos_url":"https://api.github.com/users/drwilly/repos","events_url":"https://api.github.com/users/drwilly/events{/privacy}","received_events_url":"https://api.github.com/users/drwilly/received_events","type":"User","site_admin":false},"body":"Good, that part was inherited and I left it in just in case.","created_at":"2018-03-06T23:28:15Z","updated_at":"2018-03-06T23:28:16Z","html_url":"https://github.com/fish-shell/fish-shell/pull/4758#discussion_r172695912","pull_request_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/4758","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/comments/172695912"},"html":{"href":"https://github.com/fish-shell/fish-shell/pull/4758#discussion_r172695912"},"pull_request":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/4758"}},"in_reply_to_id":172684596},"pull_request":{"url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/4758","id":171942168,"html_url":"https://github.com/fish-shell/fish-shell/pull/4758","diff_url":"https://github.com/fish-shell/fish-shell/pull/4758.diff","patch_url":"https://github.com/fish-shell/fish-shell/pull/4758.patch","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/4758","number":4758,"state":"open","locked":false,"title":"revisit gentoo-related completions","user":{"login":"drwilly","id":826152,"avatar_url":"https://avatars1.githubusercontent.com/u/826152?v=4","gravatar_id":"","url":"https://api.github.com/users/drwilly","html_url":"https://github.com/drwilly","followers_url":"https://api.github.com/users/drwilly/followers","following_url":"https://api.github.com/users/drwilly/following{/other_user}","gists_url":"https://api.github.com/users/drwilly/gists{/gist_id}","starred_url":"https://api.github.com/users/drwilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwilly/subscriptions","organizations_url":"https://api.github.com/users/drwilly/orgs","repos_url":"https://api.github.com/users/drwilly/repos","events_url":"https://api.github.com/users/drwilly/events{/privacy}","received_events_url":"https://api.github.com/users/drwilly/received_events","type":"User","site_admin":false},"body":"- add completion for emaint\r\n- improve completion for emerge\r\n  still incomplete, but an impovement regardless\r\n- improve completion for equery\r\n- add gentoo/portage-related auxiliary functions","created_at":"2018-02-28T12:41:15Z","updated_at":"2018-03-06T23:28:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e65ab3c209acaf880aa026d934f301ab7e619c61","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":252196718,"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/completions","name":"completions","color":"E6C0E5","default":false},{"id":4724778,"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":{"url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/18","html_url":"https://github.com/fish-shell/fish-shell/milestone/18","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/18/labels","id":2597361,"number":18,"title":"fish-3.0","description":"The proposed 3.0 major release of fish. May contain breaking changes.","creator":{"login":"faho","id":5185367,"avatar_url":"https://avatars3.githubusercontent.com/u/5185367?v=4","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},"open_issues":20,"closed_issues":172,"state":"open","created_at":"2017-06-22T00:28:56Z","updated_at":"2018-03-06T22:44:08Z","due_on":"2018-04-01T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/4758/commits","review_comments_url":"https://api.github.com/repos/fish-shell/fish-shell/pulls/4758/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/4758/comments","statuses_url":"https://api.github.com/repos/fish-shell/fish-shell/statuses/5a33b8ac2a299fa5c38bdb602a7fc97ed9541cff","head":{"label":"drwilly:master","ref":"master","sha":"5a33b8ac2a299fa5c38bdb602a7fc97ed9541cff","user":{"login":"drwilly","id":826152,"avatar_url":"https://avatars1.githubusercontent.com/u/826152?v=4","gravatar_id":"","url":"https://api.github.com/users/drwilly","html_url":"https://github.com/drwilly","followers_url":"https://api.github.com/users/drwilly/followers","following_url":"https://api.github.com/users/drwilly/following{/other_user}","gists_url":"https://api.github.com/users/drwilly/gists{/gist_id}","starred_url":"https://api.github.com/users/drwilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwilly/subscriptions","organizations_url":"https://api.github.com/users/drwilly/orgs","repos_url":"https://api.github.com/users/drwilly/repos","events_url":"https://api.github.com/users/drwilly/events{/privacy}","received_events_url":"https://api.github.com/users/drwilly/received_events","type":"User","site_admin":false},"repo":{"id":77049121,"name":"fish-shell","full_name":"drwilly/fish-shell","owner":{"login":"drwilly","id":826152,"avatar_url":"https://avatars1.githubusercontent.com/u/826152?v=4","gravatar_id":"","url":"https://api.github.com/users/drwilly","html_url":"https://github.com/drwilly","followers_url":"https://api.github.com/users/drwilly/followers","following_url":"https://api.github.com/users/drwilly/following{/other_user}","gists_url":"https://api.github.com/users/drwilly/gists{/gist_id}","starred_url":"https://api.github.com/users/drwilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwilly/subscriptions","organizations_url":"https://api.github.com/users/drwilly/orgs","repos_url":"https://api.github.com/users/drwilly/repos","events_url":"https://api.github.com/users/drwilly/events{/privacy}","received_events_url":"https://api.github.com/users/drwilly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drwilly/fish-shell","description":"The user-friendly command line shell.","fork":true,"url":"https://api.github.com/repos/drwilly/fish-shell","forks_url":"https://api.github.com/repos/drwilly/fish-shell/forks","keys_url":"https://api.github.com/repos/drwilly/fish-shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drwilly/fish-shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drwilly/fish-shell/teams","hooks_url":"https://api.github.com/repos/drwilly/fish-shell/hooks","issue_events_url":"https://api.github.com/repos/drwilly/fish-shell/issues/events{/number}","events_url":"https://api.github.com/repos/drwilly/fish-shell/events","assignees_url":"https://api.github.com/repos/drwilly/fish-shell/assignees{/user}","branches_url":"https://api.github.com/repos/drwilly/fish-shell/branches{/branch}","tags_url":"https://api.github.com/repos/drwilly/fish-shell/tags","blobs_url":"https://api.github.com/repos/drwilly/fish-shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drwilly/fish-shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drwilly/fish-shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/drwilly/fish-shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drwilly/fish-shell/statuses/{sha}","languages_url":"https://api.github.com/repos/drwilly/fish-shell/languages","stargazers_url":"https://api.github.com/repos/drwilly/fish-shell/stargazers","contributors_url":"https://api.github.com/repos/drwilly/fish-shell/contributors","subscribers_url":"https://api.github.com/repos/drwilly/fish-shell/subscribers","subscription_url":"https://api.github.com/repos/drwilly/fish-shell/subscription","commits_url":"https://api.github.com/repos/drwilly/fish-shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/drwilly/fish-shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/drwilly/fish-shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/drwilly/fish-shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/drwilly/fish-shell/contents/{+path}","compare_url":"https://api.github.com/repos/drwilly/fish-shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drwilly/fish-shell/merges","archive_url":"https://api.github.com/repos/drwilly/fish-shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drwilly/fish-shell/downloads","issues_url":"https://api.github.com/repos/drwilly/fish-shell/issues{/number}","pulls_url":"https://api.github.com/repos/drwilly/fish-shell/pulls{/number}","milestones_url":"https://api.github.com/repos/drwilly/fish-shell/milestones{/number}","notifications_url":"https://api.github.com/repos/drwilly/fish-shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drwilly/fish-shell/labels{/name}","releases_url":"https://api.github.com/repos/drwilly/fish-shell/releases{/id}","deployments_url":"https://api.github.com/repos/drwilly/fish-shell/deployments","created_at":"2016-12-21T12:20:15Z","updated_at":"2016-12-21T12:20:20Z","pushed_at":"2018-02-28T12:37:46Z","git_url":"git://github.com/drwilly/fish-shell.git","ssh_url":"git@github.com:drwilly/fish-shell.git","clone_url":"https://github.com/drwilly/fish-shell.git","svn_url":"https://github.com/drwilly/fish-shell","homepage":"http://fishshell.com","size":42817,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fish-shell:master","ref":"master","sha":"6f1ae79a1398172b27f7d1fea76dbe4de675478b","user":{"login":"fish-shell","id":1828073,"avatar_url":"https://avatars0.githubusercontent.com/u/1828073?v=4","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://avatars0.githubusercontent.com/u/1828073?v=4","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":"2018-03-06T21:26:22Z","pushed_at":"2018-03-06T23:03:20Z","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":42287,"stargazers_count":9240,"watchers_count":9240,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":898,"mirror_url":null,"archived":false,"open_issues_count":469,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":898,"open_issues":469,"watchers":9240,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/4758"},"html":{"href":"https://github.com/fish-shell/fish-shell/pull/4758"},"issue":{"href":"https://api.github.com/repos/fish-shell/fish-shell/issues/4758"},"comments":{"href":"https://api.github.com/repos/fish-shell/fish-shell/issues/4758/comments"},"review_comments":{"href":"https://api.github.com/repos/fish-shell/fish-shell/pulls/4758/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/4758/commits"},"statuses":{"href":"https://api.github.com/repos/fish-shell/fish-shell/statuses/5a33b8ac2a299fa5c38bdb602a7fc97ed9541cff"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"drwilly"}}