File tree 1 file changed +13
-9
lines changed
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,25 @@ func main() {
22
22
app .EnableBashCompletion = true
23
23
app .Flags = []cli.Flag {
24
24
& cli.StringFlag {
25
- Name : "secret" ,
26
- Usage : "secret to identify the connection" ,
25
+ Name : "secret" ,
26
+ Usage : "secret to identify the connection" ,
27
+ EnvVars : []string {"TRC_SECRET" },
27
28
},
28
29
& cli.StringSliceFlag {
29
- Name : "remote" ,
30
- Usage : "address to the TCP router server, this flag can be used multiple time to connect to multiple server" ,
30
+ Name : "remote" ,
31
+ Usage : "address to the TCP router server, this flag can be used multiple time to connect to multiple server" ,
32
+ EnvVars : []string {"TRC_REMOTE" },
31
33
},
32
34
& cli.StringFlag {
33
- Name : "local" ,
34
- Usage : "address to the local application" ,
35
+ Name : "local" ,
36
+ Usage : "address to the local application" ,
37
+ EnvVars : []string {"TRC_LOCAL" },
35
38
},
36
39
& cli.IntFlag {
37
- Name : "backoff" ,
38
- Value : 5 ,
39
- Usage : "backoff in second" ,
40
+ Name : "backoff" ,
41
+ Value : 5 ,
42
+ Usage : "backoff in second" ,
43
+ EnvVars : []string {"TRC_BACKOFF" },
40
44
},
41
45
}
42
46
log .Logger = log .Output (zerolog.ConsoleWriter {Out : os .Stderr })
You can’t perform that action at this time.
0 commit comments