mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
26 lines
602 B
Go
26 lines
602 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bridge/pkg/actions/bridge"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var buildCmd = &cobra.Command{
|
|
Use: "build [OPTIONS] PATH | URL | -",
|
|
Short: "Build an image from a Dockerfile",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: "common",
|
|
DisableFlagParsing: true,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(buildCmd).Standalone()
|
|
|
|
rootCmd.AddCommand(buildCmd)
|
|
|
|
carapace.Gen(buildCmd).PositionalAnyCompletion(
|
|
bridge.ActionCarapaceBin("docker", "buildx", "build"),
|
|
)
|
|
}
|