-
Notifications
You must be signed in to change notification settings - Fork 15
/
main.go
38 lines (34 loc) · 804 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
package main
import (
"github.com/urfave/cli/v2"
pipe "github.com/cenk1cenk2/docker-softether-vpnsrv/pipe"
. "gitlab.kilic.dev/libraries/plumber/v5"
)
func main() {
NewPlumber(
func(p *Plumber) *cli.App {
return &cli.App{
Name: CLI_NAME,
Version: VERSION,
Usage: DESCRIPTION,
Description: DESCRIPTION,
Flags: p.AppendFlags(pipe.Flags),
Before: func(_ *cli.Context) error {
p.EnableTerminator()
return nil
},
Action: func(ctx *cli.Context) error {
return pipe.TL.RunJobs(
pipe.New(p).SetCliContext(ctx).Job(),
)
},
}
}).
SetDocumentationOptions(DocumentationOptions{
MarkdownOutputFile: "CLI.md",
MarkdownBehead: 0,
ExcludeFlags: true,
ExcludeHelpCommand: true,
}).
Run()
}