mcst/cmd/root.go
Gregory Ballantine 92153508b3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Initial Go project structure
2022-09-17 18:16:30 -04:00

26 lines
526 B
Go

package cmd
import (
"log"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "mcst",
Short: "MCST is a tool to manage Minecraft Java edition servers.",
Long: `A flexible yet user-friendly tool to manage Minecraft Java edition server.
Source code available at https://git.metaunix.net/BitGoblin/mcst`,
Run: func(cmd *cobra.Command, args []string) {
log.Printf("This is a test.")
},
}
func Start() {
if err := rootCmd.Execute(); err != nil {
log.Println(err)
os.Exit(1)
}
}