27 lines
643 B
Go
27 lines
643 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/mhenselin/terraform-provider-stackitprivatepreview/cmd/cmd"
|
|
)
|
|
|
|
func main() {
|
|
rootCmd := cmd.NewRootCmd()
|
|
//rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.cobra.yaml)")
|
|
//rootCmd.PersistentFlags().StringP("author", "a", "YOUR NAME", "author name for copyright attribution")
|
|
//rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
|
|
|
|
rootCmd.SetOut(os.Stdout)
|
|
|
|
rootCmd.AddCommand(
|
|
cmd.NewBuildCmd(),
|
|
cmd.NewPublishCmd(),
|
|
)
|
|
|
|
err := rootCmd.Execute()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|