You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
407 B
Go
25 lines
407 B
Go
package commands
|
|
|
|
import (
|
|
"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",
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
inspectCmd(dockerCli, opts),
|
|
createCmd(dockerCli, opts),
|
|
)
|
|
|
|
return cmd
|
|
}
|