-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuhhm.go
42 lines (37 loc) · 801 Bytes
/
uhhm.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
package main
import (
"github.com/bgartzi/uhhm/lib/subcmds"
"github.com/urfave/cli/v2"
"os"
)
func Authors() []*cli.Author {
return []*cli.Author{
{
Name: "Beñat Gartzia",
Email: "[email protected]",
},
}
}
func getSubCommands() []*cli.Command {
return []*cli.Command{
subcmds.Add(),
subcmds.Delete(),
subcmds.Sesh(),
subcmds.Proxy(),
subcmds.List(),
}
}
func AppInit() *cli.App {
return &cli.App{
Name: "uhhm",
HelpName: "uhhm",
Authors: Authors(),
Usage: "Ultra Humble Host Manager",
UsageText: "Dummy way of managing your humble (almost inexistent) host inventory.",
Commands: getSubCommands(),
EnableBashCompletion: true,
}
}
func main() {
AppInit().Run(os.Args)
}