-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcommands.go
47 lines (45 loc) · 1.11 KB
/
commands.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
package main
import (
"github.com/urfave/cli/v2"
"runtime"
)
var Commands = []*cli.Command{
{
Name: "measure",
Usage: "Run a batch test and measurement job given a list of hostnames",
Action: measure,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "inputlist",
Aliases: []string{"i"},
Value: "test.csv",
Usage: "The path to the list of hostnames to run the measurement on",
},
&cli.StringFlag{
Name: "outdir",
Aliases: []string{"o"},
Value: "results",
Usage: "Directory to save the output file along with the timestamp of the scan in <OutDir>/results-<Timestamp>.csv",
},
&cli.IntFlag{
Name: "parallelism",
Aliases: []string{"p"},
Value: runtime.NumCPU() * 2,
Usage: "Number of workers to dispatch to complete measurement",
},
},
},
{
Name: "query",
Usage: "Run an individual test given a hostname",
Action: singleMeasure,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "fqdn",
Aliases: []string{"d"},
Value: "sudheesh.info.",
Usage: "The FQDN Hostname to check the DNSSEC Status",
},
},
},
}