mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	build: add completion to list context folders
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		@@ -23,7 +23,6 @@ import (
 | 
				
			|||||||
	"github.com/docker/buildx/store"
 | 
						"github.com/docker/buildx/store"
 | 
				
			||||||
	"github.com/docker/buildx/store/storeutil"
 | 
						"github.com/docker/buildx/store/storeutil"
 | 
				
			||||||
	"github.com/docker/buildx/util/buildflags"
 | 
						"github.com/docker/buildx/util/buildflags"
 | 
				
			||||||
	"github.com/docker/buildx/util/cobrautil/completion"
 | 
					 | 
				
			||||||
	"github.com/docker/buildx/util/ioset"
 | 
						"github.com/docker/buildx/util/ioset"
 | 
				
			||||||
	"github.com/docker/buildx/util/progress"
 | 
						"github.com/docker/buildx/util/progress"
 | 
				
			||||||
	"github.com/docker/buildx/util/tracing"
 | 
						"github.com/docker/buildx/util/tracing"
 | 
				
			||||||
@@ -254,7 +253,9 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
			return runBuild(dockerCli, options)
 | 
								return runBuild(dockerCli, options)
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		ValidArgsFunction: completion.Disable,
 | 
							ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
 | 
				
			||||||
 | 
								return nil, cobra.ShellCompDirectiveFilterDirs
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var platformsDefault []string
 | 
						var platformsDefault []string
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user