mirror of https://github.com/docker/cli.git
Use constants in completion of IPCModes
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
a40ea78579
commit
3bc177b8ac
|
@ -216,7 +216,13 @@ func completeIpc(dockerCLI completion.APIClientProvider) func(cmd *cobra.Command
|
||||||
names, _ := completion.ContainerNames(dockerCLI, true)(cmd, args, toComplete)
|
names, _ := completion.ContainerNames(dockerCLI, true)(cmd, args, toComplete)
|
||||||
return prefixWith("container:", names), cobra.ShellCompDirectiveNoFileComp
|
return prefixWith("container:", names), cobra.ShellCompDirectiveNoFileComp
|
||||||
}
|
}
|
||||||
return []string{"container:", "host", "none", "private", "shareable"}, cobra.ShellCompDirectiveNoFileComp
|
return []string{
|
||||||
|
string(container.IPCModeContainer + ":"),
|
||||||
|
string(container.IPCModeHost),
|
||||||
|
string(container.IPCModeNone),
|
||||||
|
string(container.IPCModePrivate),
|
||||||
|
string(container.IPCModeShareable),
|
||||||
|
}, cobra.ShellCompDirectiveNoFileComp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue