MCPcopy Index your code
hub / github.com/docker/cli / completeCgroupns

Function completeCgroupns

cli/command/container/completion.go:148–150  ·  view source on GitHub ↗

completeCgroupns implements shell completion for the `--cgroupns` option of `run` and `create`.

()

Source from the content-addressed store, hash-verified

146
147// completeCgroupns implements shell completion for the `--cgroupns` option of `run` and `create`.
148func completeCgroupns() cobra.CompletionFunc {
149 return completion.FromList(string(container.CgroupnsModeHost), string(container.CgroupnsModePrivate))
150}
151
152// completeDetachKeys implements shell completion for the `--detach-keys` option of `run` and `create`.
153func completeDetachKeys(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {

Callers 1

addCompletionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…