-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcli.go
50 lines (47 loc) · 1.7 KB
/
cli.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
package redisdump
const (
binary = "redis-cli"
)
type Options struct {
Flags *Flags
AdditionalArgs []string
Command string
}
type Flags struct {
Cluster string `flag:"--cluster="`
Delimiter string `flag:"-d"`
Eval string `flag:"--eval="`
Host string `flag:"-h" validate:"min=1"`
LruTest string `flag:"--lru-test="`
Password string `flag:"-a"`
Pattern string `flag:"--pattern="`
Rdb string `flag:"--rdb" validate:"min=1"`
Socket string `flag:"-s"`
URI string `flag:"-u"`
DatabaseNumber int `flag:"-n"`
Interval int `flag:"-i"`
IntrinsicLatency int `flag:"--intrinsic-latency="`
MemkeysSamples int `flag:"--memkeys-samples="`
PipeTimeout int `flag:"--pipe-timeout="`
Port int `flag:"-p"`
Repeat int `flag:"-r"`
Bigkeys bool `flag:"--bigKeys"`
ClusterMode bool `flag:"-c"`
Csv bool `flag:"--csv"`
Hotkeys bool `flag:"--hotkeys"`
Latency bool `flag:"--latency"`
LatencyDist bool `flag:"latency-dist"`
LatencyHistory bool `flag:"--latency-history"`
Ldb bool `flag:"--ldb"`
LdbSyncMode bool `flag:"--ldb-sync-mode"`
Memkeys bool `flag:"--memkeys"`
NoAuthWarning bool `flag:"--no-auth-warning"`
NoRaw bool `flag:"--no-raw"`
Pipe bool `flag:"--pipe"`
Raw bool `flag:"--raw"`
ReadStdin bool `flag:"-x"`
Replica bool `flag:"--replica"`
Scan bool `flag:"--scan"`
Stat bool `flag:"--stat"`
Verbose bool `flag:"--verbose"`
}