github.com/pdmccormick/importable-docker-buildx@v0.0.0-20240426161518-e47091289030/commands/imagetools/root.go (about)

     1  package commands
     2  
     3  import (
     4  	"github.com/docker/buildx/util/cobrautil/completion"
     5  	"github.com/docker/cli/cli/command"
     6  	"github.com/spf13/cobra"
     7  )
     8  
     9  type RootOptions struct {
    10  	Builder *string
    11  }
    12  
    13  func RootCmd(dockerCli command.Cli, opts RootOptions) *cobra.Command {
    14  	cmd := &cobra.Command{
    15  		Use:               "imagetools",
    16  		Short:             "Commands to work on images in registry",
    17  		ValidArgsFunction: completion.Disable,
    18  	}
    19  
    20  	cmd.AddCommand(
    21  		createCmd(dockerCli, opts),
    22  		inspectCmd(dockerCli, opts),
    23  	)
    24  
    25  	return cmd
    26  }