mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
add flag autocomplete
Signed-off-by: chenkang <kongchen28@gmail.com>
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user