add flag autocomplete

Signed-off-by: chenkang <kongchen28@gmail.com>
This commit is contained in:
chenkang
2021-04-16 15:52:03 +08:00
parent 4fb5fee412
commit e16200ac9f

View File

@ -822,6 +822,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *ContainerCLIOpts) {
&cf.PidFile, &cf.PidFile,
pidFileFlagName, "", pidFileFlagName, "",
"Write the container process ID to the file") "Write the container process ID to the file")
_ = cmd.RegisterFlagCompletionFunc(pidFileFlagName, completion.AutocompleteDefault)
_ = createFlags.MarkHidden("signature-policy") _ = createFlags.MarkHidden("signature-policy")
if registry.IsRemote() { if registry.IsRemote() {