summaryrefslogtreecommitdiff
path: root/cmd/podman/images/buildx.go
blob: 5c8e5aaa0cd6c212d0a1ef0d767d87aaa40035d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package images

import (
	"github.com/containers/podman/v3/cmd/podman/registry"
	"github.com/containers/podman/v3/cmd/podman/validate"
	"github.com/spf13/cobra"
)

var (
	// Command: podman _buildx_
	// This is a hidden command, which was added to make converting
	// from Docker to Podman easier.
	// For now podman buildx build just calls into podman build
	// If we are adding new buildx features, we will add them by default
	// to podman build.
	buildxCmd = &cobra.Command{
		Use:    "buildx",
		Short:  "Build images",
		Long:   "Build images",
		RunE:   validate.SubCommandExists,
		Hidden: true,
	}
)

func init() {
	registry.Commands = append(registry.Commands, registry.CliCommand{
		Command: buildxCmd,
	})
}