Merge pull request #6442 from Luap99/podman-autocomplete

Shell completion
This commit is contained in:
OpenShift Merge Robot
2020-11-13 16:46:51 +01:00
committed by GitHub
169 changed files with 5987 additions and 6000 deletions

View File

@ -25,6 +25,12 @@ function podman_commands() {
$PODMAN help "$@" |\
awk '/^Available Commands:/{ok=1;next}/^Options:/{ok=0}ok { print $1 }' |\
grep .
# Special case: podman-completion is a hidden command
# it does not show in podman help so add it here
if [[ -z "$@" ]]; then
echo "completion"
fi
}
# Read a list of subcommands from a command's metadoc

View File

@ -181,6 +181,9 @@ sub xref_by_man {
next if $k eq 'varlink';
next if "@subcommand" eq 'system' && $k eq 'service';
# Special case: podman completion is a hidden command
next if $k eq 'completion';
warn "$ME: podman @subcommand: $k in $man, but not --help\n";
++$Errs;
}