diff options
author | chenkang <kongchen28@gmail.com> | 2021-04-16 15:52:03 +0800 |
---|---|---|
committer | chenkang <kongchen28@gmail.com> | 2021-04-16 15:52:59 +0800 |
commit | e16200ac9f0e8fde836a14cc6951203e8986122a (patch) | |
tree | a88e00cf5796a7bcb932046ebefcf00dc094ebf4 /cmd/podman/common/create.go | |
parent | 4fb5fee4120165d43ee6b98f7258cda741d41d45 (diff) | |
download | podman-e16200ac9f0e8fde836a14cc6951203e8986122a.tar.gz podman-e16200ac9f0e8fde836a14cc6951203e8986122a.tar.bz2 podman-e16200ac9f0e8fde836a14cc6951203e8986122a.zip |
add flag autocomplete
Signed-off-by: chenkang <kongchen28@gmail.com>
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r-- | cmd/podman/common/create.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index e574f228e..da391d30d 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -822,6 +822,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *ContainerCLIOpts) { &cf.PidFile, pidFileFlagName, "", "Write the container process ID to the file") + _ = cmd.RegisterFlagCompletionFunc(pidFileFlagName, completion.AutocompleteDefault) _ = createFlags.MarkHidden("signature-policy") if registry.IsRemote() { |