-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
45 lines (41 loc) · 1.08 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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/games"
"github.com/DariusKlein/kleinCommand/commands/template"
"github.com/DariusKlein/kleinCommand/commands/welcome"
"github.com/DariusKlein/kleinCommand/services"
"github.com/urfave/cli/v2"
"log"
"os"
)
func main() {
Config, _ := services.ReadConfig()
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: "[email protected]",
},
},
DefaultCommand: "help",
Commands: []*cli.Command{
template.Command(Config),
welcome.Command(Config),
boom.Command(Config),
bubbleTeaTest.Command(Config),
config.Command(Config),
games.Command(Config),
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}