-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
44 lines (37 loc) · 856 Bytes
/
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
package main
import (
"blazetunnel/pkg/auth"
"blazetunnel/pkg/client"
"blazetunnel/pkg/register"
"blazetunnel/pkg/server"
"log"
"os"
"github.com/urfave/cli/v2"
)
func main() {
app := &cli.App{
Name: "blazetunnel",
Version: "1.0.6",
Usage: "Expose your local application / docker container to the internet",
EnableBashCompletion: true,
Commands: []*cli.Command{
server.Init(),
client.Init(),
auth.Init(),
register.Init(),
},
}
// app := cli.NewApp()
// app.Name = "blazetunnel"
// app.Version = "v0.0.1"
// app.Usage = "Expose your local applications ports to the internet"
// app.Copyright = "Akilan Elango 2019"
// app.Commands = []cli.Command{
server.Init()
// client.Init(),
// }
if err := app.Run(os.Args); err != nil {
log.Println(err)
os.Exit(2)
}
}