feat: generating code

This commit is contained in:
Marcel S. Henselin 2026-01-21 09:07:29 +01:00
parent c329d58970
commit 51663cd8d0
1221 changed files with 271709 additions and 2444 deletions

33
cmd/main.go Normal file
View file

@ -0,0 +1,33 @@
package main
import (
"log"
"os"
"github.com/mhenselin/terraform-provider-stackitprivatepreview/tools"
"github.com/spf13/cobra"
)
func NewRootCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "builder",
Short: "...",
Long: "...",
SilenceErrors: true, // Error is beautified in a custom way before being printed
SilenceUsage: true,
DisableAutoGenTag: true,
RunE: func(cmd *cobra.Command, _ []string) error {
return tools.Build()
},
}
cmd.SetOut(os.Stdout)
return cmd
}
func main() {
cmd := NewRootCmd()
err := cmd.Execute()
if err != nil {
log.Fatal(err)
}
}