mirror of
https://github.com/docker/cli.git
synced 2026-01-06 05:41:44 +03:00
Merge pull request #6419 from thaJeztah/complete_pull
add completion for docker image pull
This commit is contained in:
@@ -38,7 +38,9 @@ func newPullCommand(dockerCLI command.Cli) *cobra.Command {
|
||||
"category-top": "5",
|
||||
"aliases": "docker image pull, docker pull",
|
||||
},
|
||||
ValidArgsFunction: cobra.NoFileCompletions,
|
||||
// Complete with local images to help pulling the latest version
|
||||
// of images that are in the image cache.
|
||||
ValidArgsFunction: completion.ImageNames(dockerCLI, 1),
|
||||
DisableFlagsInUseLine: true,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user