completeLink implements shell completion for the `--link` option of `run` and `create`.
(dockerCLI completion.APIClientProvider)
| 177 | |
| 178 | // completeLink implements shell completion for the `--link` option of `run` and `create`. |
| 179 | func completeLink(dockerCLI completion.APIClientProvider) cobra.CompletionFunc { |
| 180 | return func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 181 | return postfixWith(":", containerNames(dockerCLI, cmd, args, toComplete)), cobra.ShellCompDirectiveNoSpace |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // completeLinks implements shell completion for the `--link` option of `rm --link`. |
| 186 | // |
no test coverage detected
searching dependent graphs…