fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9367d4ff7
master
1function __fish_print_portage_repository_names --description'Print the names of all configured repositories' 2# repos.conf may be a file or a directory 3find /etc/portage/repos.conf -type f -exec cat'{}' +| string replace -r --filter'^\s*\[([[:alnum:]_][[:alnum:]_-]*)\]' '$1' | string match -v -e DEFAULT 4end 5 6## Global Opts 7complete -c emaint -s h -l help -d"Show this help message and exit" 8complete -c emaint -s c -l check -d"Check for problems" 9complete -c emaint -l version -d"Show program's version number and exit" 10complete -c emaint -s f -l fix -d"Attempt to fix problems" 11complete -c emaint -s P -l purge -d"Remove the list of failed merges" 12 13## Subcommands 14complete -c emaint -n __fish_use_subcommand -xa all -d'Perform all supported commands' 15complete -c emaint -n __fish_use_subcommand -xa binhost -d'Scan and generate metadata indexes for binary pkgs' 16complete -c emaint -n __fish_use_subcommand -xa cleanconfmem -d'Check and clean the config tracker list for uninstalled pkgs' 17complete -c emaint -n __fish_use_subcommand -xa cleanresume -d'Discard emerge --resume merge lists' 18complete -c emaint -n __fish_use_subcommand -xa logs -d'Check and clean old logs in the PORT_LOGDIR' 19complete -c emaint -n __fish_use_subcommand -xa merges -d'Scan for failed merges and fix them' 20complete -c emaint -n __fish_use_subcommand -xa movebin -d'Perform pkg move updates for binary pkgs' 21complete -c emaint -n __fish_use_subcommand -xa moveinst -d'Perform pkg move updates for installed and binary pkgs' 22complete -c emaint -n __fish_use_subcommand -xa sync -d'Check repos.conf settings and sync repositories' 23complete -c emaint -n __fish_use_subcommand -xa world -d'Check and fix problems in the world file' 24 25## Local opts 26# logs 27complete -c emaint -n'__fish_seen_subcommand_from logs' -s t -l time -d"Delete logs older than NUM days" \ 28 -xa"(seq 0 365)" 29complete -c emaint -n'__fish_seen_subcommand_from logs' -s p -l pretend -d"Output logs that would be deleted" 30complete -c emaint -n'__fish_seen_subcommand_from logs' -s C -l clean -d"Cleans out logs more than 7 days old" 31# sync 32complete -c emaint -n'__fish_seen_subcommand_from sync' -s a -l auto -d"Sync auto-sync enabled repos only" 33complete -c emaint -n'__fish_seen_subcommand_from sync' -s A -l allrepos -d"Sync all repos that have a sync-url defined" 34complete -c emaint -n'__fish_seen_subcommand_from sync' -s r -l repo -d"Sync the specified repo" \ 35 -xa"(__fish_print_portage_repository_names)" 36complete -c emaint -n'__fish_seen_subcommand_from sync' -l sync-submodule -d"Restrict sync to the specified submodule(s)" \ 37 -xa"glsa news profiles"