kleinCommand/main.go
2024-05-24 19:41:44 +02:00

41 lines
913 B
Go

package main
import (
"github.com/DariusKlein/kleinCommand/commands/boom"
"github.com/DariusKlein/kleinCommand/commands/bubbleTeaTest"
"github.com/DariusKlein/kleinCommand/commands/config"
"github.com/DariusKlein/kleinCommand/commands/template"
"github.com/DariusKlein/kleinCommand/commands/welcome"
"github.com/urfave/cli/v2"
"log"
"os"
)
func main() {
app := &cli.App{
Name: "KleinCommand",
Usage: "manage your home server",
UsageText: "kleinCommand [category] [command] [arguments...]",
Version: "v0.0.1",
HideVersion: true,
Authors: []*cli.Author{
{
Name: "Darius",
Email: "darius.klein@dariusklein.nl",
},
},
DefaultCommand: "help",
Commands: []*cli.Command{
template.Command(),
welcome.Command(),
boom.Command(),
bubbleTeaTest.Command(),
config.Command(),
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}