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

Function completeUlimit

cli/command/container/completion.go:284–307  ·  view source on GitHub ↗

completeUlimit implements shell completion for the `--ulimit` option of `run` and `create`.

(_ *cobra.Command, _ []string, _ string)

Source from the content-addressed store, hash-verified

282
283// completeUlimit implements shell completion for the `--ulimit` option of `run` and `create`.
284func completeUlimit(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
285 limits := []string{
286 "as",
287 "chroot",
288 "core",
289 "cpu",
290 "data",
291 "fsize",
292 "locks",
293 "maxlogins",
294 "maxsyslogins",
295 "memlock",
296 "msgqueue",
297 "nice",
298 "nofile",
299 "nproc",
300 "priority",
301 "rss",
302 "rtprio",
303 "sigpending",
304 "stack",
305 }
306 return postfixWith("=", limits), cobra.ShellCompDirectiveNoSpace
307}
308
309// completeVolumeDriver contacts the API to get the built-in and installed volume drivers.
310func completeVolumeDriver(dockerCLI completion.APIClientProvider) cobra.CompletionFunc {

Callers

nothing calls this directly

Calls 1

postfixWithFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…