mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
The podman module paths are moving from github.com/containers/podman to go.podman.io/podman. This will help with future mobility. Signed-off-by: Brent Baude <bbaude@redhat.com>
28 lines
721 B
Go
28 lines
721 B
Go
package images
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"go.podman.io/podman/v6/cmd/podman/registry"
|
|
"go.podman.io/podman/v6/cmd/podman/validate"
|
|
)
|
|
|
|
// 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.
|
|
var buildxCmd = &cobra.Command{
|
|
Use: "buildx",
|
|
Aliases: []string{"builder"},
|
|
Short: "Build images",
|
|
Long: "Build images",
|
|
RunE: validate.SubCommandExists,
|
|
Hidden: true,
|
|
}
|
|
|
|
func init() {
|
|
registry.Commands = append(registry.Commands, registry.CliCommand{
|
|
Command: buildxCmd,
|
|
})
|
|
}
|