77 "github.com/docker/cli/cli/command/formatter"
88 "github.com/moby/moby/api/types/container"
99 "github.com/moby/moby/api/types/image"
10- "github.com/moby/moby/api/types/network"
11- "github.com/moby/moby/api/types/volume"
1210 "github.com/moby/moby/client"
1311 "github.com/spf13/cobra"
1412)
@@ -79,7 +77,7 @@ func ContainerNames(dockerCLI APIClientProvider, all bool, filters ...func(conta
7977// VolumeNames offers completion for volumes
8078func VolumeNames (dockerCLI APIClientProvider ) cobra.CompletionFunc {
8179 return func (cmd * cobra.Command , args []string , toComplete string ) ([]string , cobra.ShellCompDirective ) {
82- list , err := dockerCLI .Client ().VolumeList (cmd .Context (), volume. ListOptions {})
80+ list , err := dockerCLI .Client ().VolumeList (cmd .Context (), client. VolumeListOptions {})
8381 if err != nil {
8482 return nil , cobra .ShellCompDirectiveError
8583 }
@@ -94,7 +92,7 @@ func VolumeNames(dockerCLI APIClientProvider) cobra.CompletionFunc {
9492// NetworkNames offers completion for networks
9593func NetworkNames (dockerCLI APIClientProvider ) cobra.CompletionFunc {
9694 return func (cmd * cobra.Command , args []string , toComplete string ) ([]string , cobra.ShellCompDirective ) {
97- list , err := dockerCLI .Client ().NetworkList (cmd .Context (), network. ListOptions {})
95+ list , err := dockerCLI .Client ().NetworkList (cmd .Context (), client. NetworkListOptions {})
9896 if err != nil {
9997 return nil , cobra .ShellCompDirectiveError
10098 }
0 commit comments