bootstrap repo

This commit is contained in:
2023-01-25 11:25:39 +01:00
commit 3ee404125b
7 changed files with 96 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
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)
}
}