2018-03-24 02:42:30 +08:00
|
|
|
## Global Opts
|
2019-05-05 18:53:09 +08:00
|
|
|
complete -c emaint -s h -l help -d "Show this help message and exit"
|
|
|
|
complete -c emaint -s c -l check -d "Check for problems"
|
|
|
|
complete -c emaint -l version -d "Show program's version number and exit"
|
|
|
|
complete -c emaint -s f -l fix -d "Attempt to fix problems"
|
|
|
|
complete -c emaint -s P -l purge -d "Remove the list of failed merges"
|
2018-03-24 02:42:30 +08:00
|
|
|
|
|
|
|
## Subcommands
|
2019-05-05 18:53:09 +08:00
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'all' -d 'Perform all supported commands'
|
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'binhost' -d 'Scan and generate metadata indexes for binary pkgs'
|
2018-03-24 02:42:30 +08:00
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'cleanconfmem' -d 'Check and clean the config tracker list for uninstalled pkgs'
|
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'cleanresume' -d 'Discard emerge --resume merge lists'
|
2019-05-05 18:53:09 +08:00
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'logs' -d 'Check and clean old logs in the PORT_LOGDIR'
|
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'merges' -d 'Scan for failed merges and fix them'
|
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'movebin' -d 'Perform pkg move updates for binary pkgs'
|
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'moveinst' -d 'Perform pkg move updates for installed and binary pkgs'
|
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'sync' -d 'Check repos.conf settings and sync repositories'
|
|
|
|
complete -c emaint -n '__fish_use_subcommand' -xa 'world' -d 'Check and fix problems in the world file'
|
2018-03-24 02:42:30 +08:00
|
|
|
|
|
|
|
## Local opts
|
2018-06-15 15:30:17 +08:00
|
|
|
# logs
|
2019-05-05 18:53:09 +08:00
|
|
|
complete -c emaint -n '__fish_seen_subcommand_from logs' -s t -l time -d "Delete logs older than NUM days" \
|
|
|
|
-xa "(seq 0 365)"
|
|
|
|
complete -c emaint -n '__fish_seen_subcommand_from logs' -s p -l pretend -d "Output logs that would be deleted"
|
|
|
|
complete -c emaint -n '__fish_seen_subcommand_from logs' -s C -l clean -d "Cleans out logs more than 7 days old"
|
2018-03-24 02:42:30 +08:00
|
|
|
# sync
|
2019-05-05 18:53:09 +08:00
|
|
|
complete -c emaint -n '__fish_seen_subcommand_from sync' -s a -l auto -d "Sync auto-sync enabled repos only"
|
|
|
|
complete -c emaint -n '__fish_seen_subcommand_from sync' -s A -l allrepos -d "Sync all repos that have a sync-url defined"
|
|
|
|
complete -c emaint -n '__fish_seen_subcommand_from sync' -s r -l repo -d "Sync the specified repo" \
|
|
|
|
-xa "(__fish_portage_print_repository_names)"
|
|
|
|
complete -c emaint -n '__fish_seen_subcommand_from sync' -l sync-submodule -d "Restrict sync to the specified submodule(s)" \
|
|
|
|
-xa "glsa news profiles"
|