Files
goreleaser-test/test1/cmd/root.go
2023-01-25 11:29:55 +01:00

24 lines
323 B
Go

package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "test",
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Printf("test 1\n")
return nil
},
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "%s", err)
os.Exit(1)
}
}