containerNames contacts the API to get names and optionally IDs of containers. In case of an error, an empty list is returned.
(dockerCLI completion.APIClientProvider, cmd *cobra.Command, args []string, toComplete string)
| 177 | // containerNames contacts the API to get names and optionally IDs of containers. |
| 178 | // In case of an error, an empty list is returned. |
| 179 | func containerNames(dockerCLI completion.APIClientProvider, cmd *cobra.Command, args []string, toComplete string) []string { |
| 180 | names, _ := completion.ContainerNames(dockerCLI, true)(cmd, args, toComplete) |
| 181 | if names == nil { |
| 182 | return []string{} |
| 183 | } |
| 184 | return names |
| 185 | } |
| 186 | |
| 187 | // daemonNames contacts the API to get name and ID of the current docker daemon. |
| 188 | // In case of an error, an empty list is returned. |
no outgoing calls
no test coverage detected
searching dependent graphs…