generated from chevere/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flags.go
85 lines (81 loc) · 1.83 KB
/
flags.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* This file is part of xrDebug.
*
* (c) Rodolfo Berrios <rodolfo@chevere.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package main
import (
"fmt"
"github.com/xrdebug/xrdebug/internal/cli"
)
var flags = map[string]cli.Flag{
"a": {
Variable: "Address",
Type: "string",
Default: defaultAddress,
Description: "IP address to listen on",
},
"p": {
Variable: "Port",
Type: "int",
Default: defaultPort,
Description: "Port to listen on [use 0 for random]",
},
"c": {
Variable: "TLSCert",
Type: "string",
Default: "",
Description: "Path to TLS certificate file [PEM]",
},
"z": {
Variable: "TLSPrivateKey",
Type: "string",
Default: "",
Description: "Path to TLS private key",
},
"e": {
Variable: "EnableEncryption",
Type: "bool",
Default: false,
Description: "Enable end-to-end encryption",
},
"k": {
Variable: "SymmetricKey",
Type: "string",
Default: "",
Description: "[for -e option] Path to symmetric key (AES-GCM AE)",
},
"s": {
Variable: "EnableSignVerification",
Type: "bool",
Default: false,
Description: "Enable sign verification",
},
"x": {
Variable: "SignPrivateKey",
Type: "string",
Default: "",
Description: "[for -s option] Path to private key (ed25519)",
},
"n": {
Variable: "SessionName",
Type: "string",
Default: defaultSessionName,
Description: "Session name",
},
"i": {
Variable: "Editor",
Type: "string",
Default: defaultEditor,
Description: fmt.Sprintf("Editor to use %v", editors),
},
"version": {
Variable: "Version",
Type: "bool",
Default: false,
Description: "Show version information",
},
}