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.
buildx/commands/hello.go

28 lines
543 B
Go

package commands
import (
"fmt"
"github.com/docker/buildx/version"
"github.com/docker/cli/cli"
"github.com/docker/cli/cli/command"
"github.com/spf13/cobra"
)
func runHelloWorld(dockerCli command.Cli) error {
fmt.Println("hello world")
return nil
}
func helloCmd(dockerCli command.Cli) *cobra.Command {
cmd := &cobra.Command{
Use: "hello",
Short: "I think this is how cmds are added ",
Args: cli.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
return runHelloWorld(dockerCli)
},
}
return cmd
}