-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.go
42 lines (37 loc) · 792 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
package main
import (
"log"
"os"
"github.com/pjvds/tunl/cmd/commands"
"github.com/pjvds/tunl/pkg/version"
"github.com/urfave/cli/v2"
)
func main() {
app := &cli.App{
Name: "tunl",
HelpName: "tunl",
Version: version.String(),
EnableBashCompletion: true,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "host",
Value: "https://_.tunl.es",
Hidden: true,
},
},
Usage: "public addresses for local services",
Commands: []*cli.Command{
commands.DockerCommand,
commands.DaemonCommand,
commands.DirCommand,
commands.FilesCommand,
commands.HttpCommand,
commands.TcpCommand,
commands.VersionCommand,
commands.WebdavCommand,
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}