Initial Go project structure
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
25
cmd/root.go
Normal file
25
cmd/root.go
Normal file
@ -0,0 +1,25 @@
|
||||
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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user