diff --git a/share/completions/equery.fish b/share/completions/equery.fish index f04c6fab4..53afc1b94 100644 --- a/share/completions/equery.fish +++ b/share/completions/equery.fish @@ -1,18 +1,18 @@ # TODO unused function __fish_equery_print_format printf "%s\t%s\n" \ - '$cp' "contains the category and the package name only (e.g 'app-portage/gentoolkit')" \ - '$cpv' "contains the category, the package name and the full version (e.g. 'app-portage/gentoolkit-0.3.0_rc10-r1')" \ - '$category' "contains just the category (e.g. 'app-portage')" \ - '$name' "contains just the package name (e.g. 'gentoolkit')" \ - '$version' "contains the package version (without the revision) (e.g. '0.3.0_rc10')" \ - '$revision' "contains the package revision (e.g. 'r1')" \ - '$fullversion' "contains the package version including its revision (e.g. '0.3.0_rc10-r1')" \ - '$slot' "contains the package's slot" \ - '$repo' "contains the name of the package's repository (e.g. 'gentoo')" \ - '$mask' "the mask-status field (~M-??)" \ - '$mask2' "contains a verbose description of the packages masking status" \ - '$location' "the location field (IPO-)" + '$cp' "Category and package name (e.g 'app-portage/gentoolkit')" \ + '$cpv' "Category, package name and version (e.g. 'app-portage/gentoolkit-0.3.0_rc10-r1')" \ + '$category' "Category (e.g. 'app-portage')" \ + '$name' "Package name (e.g. 'gentoolkit')" \ + '$version' "Version (without the revision) (e.g. '0.3.0_rc10')" \ + '$revision' "Revision (e.g. 'r1')" \ + '$fullversion' "Version including revision (e.g. '0.3.0_rc10-r1')" \ + '$slot' "Slot" \ + '$repo' "Repository (e.g. 'gentoo')" \ + '$mask' "Mask-status field (~M-??)" \ + '$mask2' "Verbose description of the masking status" \ + '$location' "Location field (IPO-)" end ## Global Opts @@ -23,101 +23,110 @@ complete -c equery -s N -l no-pipe -d "Turns off pipe detection" complete -c equery -s V -l version -d "Display version information" ## Subcommands -complete -c equery -n '__fish_use_subcommand' -xa 'belongs' -d "List all packages owning file(s)" +complete -c equery -n '__fish_use_subcommand' -xa 'belongs' -d "List all pkgs owning file(s)" complete -c equery -n '__fish_use_subcommand' -xa 'changes' -d "List changelog entries for ATOM" -complete -c equery -n '__fish_use_subcommand' -xa 'check' -d "Check MD5sums and timestamps of package" -complete -c equery -n '__fish_use_subcommand' -xa 'depends' -d "List all packages depending on specified package" -complete -c equery -n '__fish_use_subcommand' -xa 'depgraph' -d "Display a dependency tree for package" -complete -c equery -n '__fish_use_subcommand' -xa 'files' -d "List files owned by package" +complete -c equery -n '__fish_use_subcommand' -xa 'check' -d "Check pkg's MD5sums and timestamps" +complete -c equery -n '__fish_use_subcommand' -xa 'depends' -d "List all pkgs depending on specified pkg" +complete -c equery -n '__fish_use_subcommand' -xa 'depgraph' -d "Display pkg's dependency tree" +complete -c equery -n '__fish_use_subcommand' -xa 'files' -d "List files owned by pkg" complete -c equery -n '__fish_use_subcommand' -xa 'has' -d "List pkgs for matching ENVIRONMENT data" complete -c equery -n '__fish_use_subcommand' -xa 'hasuse' -d "List pkgs with specified useflag" -complete -c equery -n '__fish_use_subcommand' -xa 'keywords' -d "Display keywords for specified PKG" -complete -c equery -n '__fish_use_subcommand' -xa 'list' -d "List all packages matching pattern" -complete -c equery -n '__fish_use_subcommand' -xa 'meta' -d "Display metadata about PKG" -complete -c equery -n '__fish_use_subcommand' -xa 'size' -d "Print size of files contained in package" -complete -c equery -n '__fish_use_subcommand' -xa 'uses' -d "Display USE flags for package" -complete -c equery -n '__fish_use_subcommand' -xa 'which' -d "Print full path to ebuild for package" +complete -c equery -n '__fish_use_subcommand' -xa 'keywords' -d "Display pkg's keywords" +complete -c equery -n '__fish_use_subcommand' -xa 'list' -d "List all pkgs matching pattern" +complete -c equery -n '__fish_use_subcommand' -xa 'meta' -d "Display pkg's metadata" +complete -c equery -n '__fish_use_subcommand' -xa 'size' -d "Print size of files contained in pkg" +complete -c equery -n '__fish_use_subcommand' -xa 'uses' -d "Display pkg's USE flags" +complete -c equery -n '__fish_use_subcommand' -xa 'which' -d "Print full path to ebuild for pkg" ## Arguments -complete -c equery -n '__fish_seen_subcommand_from changes depends depgraph meta which' -xa '(__fish_portage_print_available_pkgs)' -complete -c equery -n '__fish_seen_subcommand_from check files uses size' -xa '(__fish_portage_print_installed_pkgs)' +complete -c equery -n '__fish_seen_subcommand_from c changes d depends g depgraph m meta w which' \ + -xa '(__fish_portage_print_available_pkgs)' +complete -c equery -n '__fish_seen_subcommand_from k check f files u uses s size' \ + -xa '(__fish_portage_print_installed_pkgs)' ## Local opts # belongs -complete -c equery -n '__fish_seen_subcommand_from belongs' -s f -l full-regex -d "Supplied query is a regex" -complete -c equery -n '__fish_seen_subcommand_from belongs' -s e -l early-out -d "Stop when first match is found" -complete -c equery -n '__fish_seen_subcommand_from belongs' -s n -l name-only -d "Don't print the version" +complete -c equery -n '__fish_seen_subcommand_from b belongs' -s f -l full-regex -d "Supplied query is a regex" +complete -c equery -n '__fish_seen_subcommand_from b belongs' -s e -l early-out -d "Stop after first match" +complete -c equery -n '__fish_seen_subcommand_from b belongs' -s n -l name-only -d "Omit version" # changes -complete -c equery -n '__fish_seen_subcommand_from changes' -s l -l latest -d "Display only the latest ChangeLog entry" -complete -c equery -n '__fish_seen_subcommand_from changes' -s f -l full -d "Display the full ChangeLog" -#complete -c equery -n '__fish_seen_subcommand_from changes' -l limit=NUM -d "Limit the number of entries displayed (with --full)" -#complete -c equery -n '__fish_seen_subcommand_from changes' -l from=VER -d "Set which version to display from" -#complete -c equery -n '__fish_seen_subcommand_from changes' -l to=VER -d "Set which version to display to" +complete -c equery -n '__fish_seen_subcommand_from c changes' -s l -l latest -d "Display only latest ChangeLog entry" +complete -c equery -n '__fish_seen_subcommand_from c changes' -s f -l full -d "Display full ChangeLog" +complete -c equery -n '__fish_seen_subcommand_from c changes' -l limit -d "Limit number of entries displayed (with --full)" \ + -xa "(seq 99)" +#complete -c equery -n '__fish_seen_subcommand_from c changes' -l from=VER -d "Set which version to display from" +#complete -c equery -n '__fish_seen_subcommand_from c changes' -l to=VER -d "Set which version to display to" # check -complete -c equery -n '__fish_seen_subcommand_from check' -s f -l full-regex -d "Query is a regular expression" -complete -c equery -n '__fish_seen_subcommand_from check' -s o -l only-failures -d "Only display packages that do not pass" +complete -c equery -n '__fish_seen_subcommand_from k check' -s f -l full-regex -d "Query is a regular expression" +complete -c equery -n '__fish_seen_subcommand_from k check' -s o -l only-failures -d "Only display pkgs that do not pass" # depends -complete -c equery -n '__fish_seen_subcommand_from depends' -s a -l all-packages -d "Include dependencies that are not installed (slow)" -complete -c equery -n '__fish_seen_subcommand_from depends' -s D -l indirect -d "Search both direct and indirect dependencies" -#complete -c equery -n '__fish_seen_subcommand_from depends' -l depth=N -d "Limit indirect dependency tree to specified depth" +complete -c equery -n '__fish_seen_subcommand_from d depends' -s a -l all-packages -d "Include dependencies that are not installed (slow)" +complete -c equery -n '__fish_seen_subcommand_from d depends' -s D -l indirect -d "Search both direct and indirect dependencies" +complete -c equery -n '__fish_seen_subcommand_from d depends' -l depth -d "Limit indirect dependency tree to specified depth" \ + -xa "(seq 9)" # depgraph -complete -c equery -n '__fish_seen_subcommand_from depgraph' -s A -l no-atom -d "Do not show dependency atom" -complete -c equery -n '__fish_seen_subcommand_from depgraph' -s M -l no-mask -d "Do not show masking status" -complete -c equery -n '__fish_seen_subcommand_from depgraph' -s U -l no-useflags -d "Do not show USE flags" -complete -c equery -n '__fish_seen_subcommand_from depgraph' -s l -l linear -d "Do not format the graph by indenting dependencies" -#complete -c equery -n '__fish_seen_subcommand_from depgraph' -l depth=N -d "Limit dependency graph to specified depth" +complete -c equery -n '__fish_seen_subcommand_from g depgraph' -s A -l no-atom -d "Don't show dependency atom" +complete -c equery -n '__fish_seen_subcommand_from g depgraph' -s M -l no-mask -d "Don't show masking status" +complete -c equery -n '__fish_seen_subcommand_from g depgraph' -s U -l no-useflags -d "Don't show USE flags" +complete -c equery -n '__fish_seen_subcommand_from g depgraph' -s l -l linear -d "Don't indent dependencies" +complete -c equery -n '__fish_seen_subcommand_from g depgraph' -l depth -d "Limit dependency graph to specified depth" \ + -xa "(seq 9)" # files -complete -c equery -n '__fish_seen_subcommand_from files' -s m -l md5sum -d "Include MD5 sum in output" -complete -c equery -n '__fish_seen_subcommand_from files' -s s -l timestamp -d "Include timestamp in output" -complete -c equery -n '__fish_seen_subcommand_from files' -s t -l type -d "Include file type in output" -complete -c equery -n '__fish_seen_subcommand_from files' -l tree -d "Display results in a tree (turns off other options)" +complete -c equery -n '__fish_seen_subcommand_from f files' -s m -l md5sum -d "Include MD5 sum in output" +complete -c equery -n '__fish_seen_subcommand_from f files' -s s -l timestamp -d "Include timestamp in output" +complete -c equery -n '__fish_seen_subcommand_from f files' -s t -l type -d "Include file type in output" +complete -c equery -n '__fish_seen_subcommand_from f files' -l tree -d "Display results in a tree" # TODO comma separated list -complete -c equery -n '__fish_seen_subcommand_from files' -s f -l filter -d "Filter output by file type (comma separated list)" \ +complete -c equery -n '__fish_seen_subcommand_from f files' -s f -l filter -d "Filter output by file type (comma separated list)" \ -xa "dir obj sym dev fifo path conf cmd doc man info" # has + hasuse -complete -c equery -n '__fish_seen_subcommand_from has hasuse' -s I -l exclude-installed -d "Exclude installed packages from search path" -complete -c equery -n '__fish_seen_subcommand_from has hasuse' -s o -l overlay-tree -d "Include overlays in search path" -complete -c equery -n '__fish_seen_subcommand_from has hasuse' -s p -l portage-tree -d "Include entire portage tree in search path" -#complete -c equery -n '__fish_seen_subcommand_from has hasuse' -s F -l format=TMPL -d "Specify a custom output format" +complete -c equery -n '__fish_seen_subcommand_from a has h hasuse' -s I -l exclude-installed -d "Exclude installed pkgs from search path" +complete -c equery -n '__fish_seen_subcommand_from a has h hasuse' -s o -l overlay-tree -d "Include overlays in search path" +complete -c equery -n '__fish_seen_subcommand_from a has h hasuse' -s p -l portage-tree -d "Include entire portage tree in search path" +#complete -c equery -n '__fish_seen_subcommand_from a has h hasuse' -s F -l format=TMPL -d "Specify a custom output format" # keywords # TODO # list -complete -c equery -n '__fish_seen_subcommand_from list' -s d -l duplicates -d "List only installed duplicate packages" -complete -c equery -n '__fish_seen_subcommand_from list' -s b -l binpkgs-missing -d "List only installed packages without a corresponding binary package" -complete -c equery -n '__fish_seen_subcommand_from list' -s f -l full-regex -d "Query is a regular expression" -complete -c equery -n '__fish_seen_subcommand_from list' -s m -l mask-reason -d "Include reason for package mask" -complete -c equery -n '__fish_seen_subcommand_from list' -s I -l exclude-installed -d "Exclude installed packages from output" -complete -c equery -n '__fish_seen_subcommand_from list' -s o -l overlay-tree -d "List packages in overlays" -complete -c equery -n '__fish_seen_subcommand_from list' -s p -l portage-tree -d "List packages in the main portage tree" -#complete -c equery -n '__fish_seen_subcommand_from list' -s F -l format=TMPL -d "Specify a custom output format" +complete -c equery -n '__fish_seen_subcommand_from l list' -s d -l duplicates -d "List only installed duplicate pkgs" +complete -c equery -n '__fish_seen_subcommand_from l list' -s b -l binpkgs-missing -d "List only installed pkgs without a corresponding binary pkg" +complete -c equery -n '__fish_seen_subcommand_from l list' -s f -l full-regex -d "Query is a regular expression" +complete -c equery -n '__fish_seen_subcommand_from l list' -s m -l mask-reason -d "Include reason for pkg mask" +complete -c equery -n '__fish_seen_subcommand_from l list' -s I -l exclude-installed -d "Exclude installed pkgs from output" +complete -c equery -n '__fish_seen_subcommand_from l list' -s o -l overlay-tree -d "List pkgs in overlays" +complete -c equery -n '__fish_seen_subcommand_from l list' -s p -l portage-tree -d "List pkgs in the main portage tree" +#complete -c equery -n '__fish_seen_subcommand_from l list' -s F -l format=TMPL -d "Specify a custom output format" +complete -c equery -n '__fish_seen_subcommand_from l list; and not __fish_contains_opt -s p portage-tree' \ + -xa "(__fish_portage_print_installed_pkgs)" +complete -c equery -n '__fish_seen_subcommand_from l list; and __fish_contains_opt -s p portage-tree' \ + -xa "(__fish_portage_print_available_pkgs)" # meta -complete -c equery -n '__fish_seen_subcommand_from meta' -s d -l description -d "Show an extended package description" -complete -c equery -n '__fish_seen_subcommand_from meta' -s H -l herd -d "Show the herd(s) for the package" -complete -c equery -n '__fish_seen_subcommand_from meta' -s k -l keywords -d "Show keywords for all matching package versions" -complete -c equery -n '__fish_seen_subcommand_from meta' -s l -l license -d "Show licenses for the best maching version" -complete -c equery -n '__fish_seen_subcommand_from meta' -s m -l maintainer -d "Show the maintainer(s) for the package" -complete -c equery -n '__fish_seen_subcommand_from meta' -s S -l stablreq -d "Show STABLEREQ arches (cc's) for all matching package versions" -complete -c equery -n '__fish_seen_subcommand_from meta' -s u -l useflags -d "Show per-package USE flag descriptions" -complete -c equery -n '__fish_seen_subcommand_from meta' -s U -l upstream -d "Show package's upstream information" -complete -c equery -n '__fish_seen_subcommand_from meta' -s x -l xml -d "Show the plain metadata.xml file" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s d -l description -d "Show an extended pkg description" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s H -l herd -d "Show pkg's herd(s)" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s k -l keywords -d "Show keywords for all matching pkg versions" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s l -l license -d "Show licenses for the best maching version" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s m -l maintainer -d "Show the maintainer(s) for the pkg" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s S -l stablreq -d "Show STABLEREQ arches (cc's) for all matching pkg versions" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s u -l useflags -d "Show per-pkg USE flag descriptions" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s U -l upstream -d "Show pkg's upstream information" +complete -c equery -n '__fish_seen_subcommand_from m meta' -s x -l xml -d "Show the plain metadata.xml file" # size -complete -c equery -n '__fish_seen_subcommand_from size' -s b -l bytes -d "Report size in bytes" -complete -c equery -n '__fish_seen_subcommand_from size' -s f -l full-regex -d "Query is a regular expression" +complete -c equery -n '__fish_seen_subcommand_from s size' -s b -l bytes -d "Report size in bytes" +complete -c equery -n '__fish_seen_subcommand_from s size' -s f -l full-regex -d "Query is a regular expression" # uses -complete -c equery -n '__fish_seen_subcommand_from uses' -s a -l all -d "Include all package versions" -complete -c equery -n '__fish_seen_subcommand_from uses' -s i -l ignore-l10n -d "Don't show l10n USE flags" +complete -c equery -n '__fish_seen_subcommand_from u uses' -s a -l all -d "Include all pkg versions" +complete -c equery -n '__fish_seen_subcommand_from u uses' -s i -l ignore-l10n -d "Don't show l10n USE flags" # which -complete -c equery -n '__fish_seen_subcommand_from which' -s m -l include-masked -d "Return highest version ebuild available" -complete -c equery -n '__fish_seen_subcommand_from which' -s e -l ebuild -d "Print the ebuild" +complete -c equery -n '__fish_seen_subcommand_from w which' -s m -l include-masked -d "Return highest version ebuild available" +complete -c equery -n '__fish_seen_subcommand_from w which' -s e -l ebuild -d "Print the ebuild"