update local code for updated modules
Some tests had to be skipped as there's some issues to address, and some of the result-types cannot be mocked / stubbed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -32,14 +32,14 @@ func completeNames(dockerCLI completion.APIClientProvider, state pluginState) co
|
||||
// no filter
|
||||
}
|
||||
|
||||
list, err := dockerCLI.Client().PluginList(cmd.Context(), client.PluginListOptions{
|
||||
res, err := dockerCLI.Client().PluginList(cmd.Context(), client.PluginListOptions{
|
||||
Filters: f,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, cobra.ShellCompDirectiveError
|
||||
}
|
||||
var names []string
|
||||
for _, v := range list {
|
||||
for _, v := range res.Items {
|
||||
names = append(names, v.Name)
|
||||
}
|
||||
return names, cobra.ShellCompDirectiveNoFileComp
|
||||
|
||||
Reference in New Issue
Block a user