mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 13:37:08 +08:00
build: basis of build command
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
21
commands/root.go
Normal file
21
commands/root.go
Normal file
@ -0,0 +1,21 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"github.com/docker/cli/cli/command"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func NewRootCmd(dockerCli command.Cli) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Short: "Build with BuildKit",
|
||||
Use: "buildx",
|
||||
}
|
||||
addCommands(cmd, dockerCli)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func addCommands(cmd *cobra.Command, dockerCli command.Cli) {
|
||||
cmd.AddCommand(
|
||||
buildCmd(dockerCli),
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user