Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Feb 14, 2024
1 parent 6b672a4 commit 31da778
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cmd/gardener/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import (
// repositoryDir is the path of the citizenlab/test-lists working copy.
const repositoryDir = "citizenlab-test-lists"

// dnsReportDatabase is the path of the database maintained by the dnsreport subcommand.
const dnsReportDatabase = "dnsreport.sqlite3"

func main() {
// select a colourful apex/log handler
log.SetHandler(cli.New(os.Stderr))
Expand All @@ -39,7 +42,7 @@ func main() {
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
sc := &sync.Subcommand{
DNSReportDatabase: "dnsreport.sqlite3",
DNSReportDatabase: dnsReportDatabase,
RepositoryDir: repositoryDir,
OsChdir: os.Chdir,
OsGetwd: os.Getwd,
Expand All @@ -59,7 +62,7 @@ func main() {
sc := &dnsreport.Subcommand{
APIURL: "https://api.ooni.io",
DNSOverHTTPSServerURL: "https://dns.google/dns-query",
Database: "dnsreport.sqlite3",
Database: dnsReportDatabase,
ReportFile: "dnsreport.csv",
RepositoryDir: repositoryDir,
}
Expand Down

0 comments on commit 31da778

Please sign in to comment.