mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			527 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			527 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package commands
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/docker/buildx/util/cobrautil/completion"
 | 
						|
	"github.com/docker/cli/cli/command"
 | 
						|
	"github.com/spf13/cobra"
 | 
						|
)
 | 
						|
 | 
						|
type RootOptions struct {
 | 
						|
	Builder *string
 | 
						|
}
 | 
						|
 | 
						|
func RootCmd(dockerCli command.Cli, opts RootOptions) *cobra.Command {
 | 
						|
	cmd := &cobra.Command{
 | 
						|
		Use:               "imagetools",
 | 
						|
		Short:             "Commands to work on images in registry",
 | 
						|
		ValidArgsFunction: completion.Disable,
 | 
						|
	}
 | 
						|
 | 
						|
	cmd.AddCommand(
 | 
						|
		createCmd(dockerCli, opts),
 | 
						|
		inspectCmd(dockerCli, opts),
 | 
						|
	)
 | 
						|
 | 
						|
	return cmd
 | 
						|
}
 |