Add Makefile and main.go in cli tools, base logger

This commit is contained in:
d3m0k1d
2026-01-04 18:42:41 +03:00
parent 0a5c9bc2d1
commit 2ac31f49af
3 changed files with 84 additions and 0 deletions

30
cmd/banforge/main.go Normal file
View File

@@ -0,0 +1,30 @@
package main
import (
"fmt"
"github.com/spf13/cobra"
"os"
)
var rootCmd = &cobra.Command{
Use: "banforge",
Short: "IPS log-based written on Golang",
Run: func(cmd *cobra.Command, args []string) {
},
}
func Init() {
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
func main() {
Execute()
}