kleinCommand/main.go

35 lines
609 B
Go
Raw Normal View History

package main
import (
"github.com/urfave/cli/v2"
"kleinCommand/commands"
"log"
"os"
)
func main() {
app := &cli.App{
2024-05-24 12:21:21 +02:00
Name: "KleinCommand",
Usage: "manage your home server",
UsageText: "kleinCommand [category] [command] [arguments...]",
Version: "v0.0.1",
Authors: []*cli.Author{
{
Name: "Darius",
Email: "darius.klein@dariusklein.nl",
},
},
DefaultCommand: "help",
Commands: []*cli.Command{
2024-05-24 12:21:21 +02:00
commands.Template(),
commands.Welcome(),
commands.Boom(),
commands.BubbleTeaTest(),
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}