completeUlimit implements shell completion for the `--ulimit` option of `run` and `create`.
(_ *cobra.Command, _ []string, _ string)
| 282 | |
| 283 | // completeUlimit implements shell completion for the `--ulimit` option of `run` and `create`. |
| 284 | func 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. |
| 310 | func completeVolumeDriver(dockerCLI completion.APIClientProvider) cobra.CompletionFunc { |
nothing calls this directly
no test coverage detected
searching dependent graphs…