You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Config is the path to the config file, if present
11
-
Config="config"
12
-
// Daemon is the flag for enabling daemon mode
13
-
Daemon="daemon"
14
-
// Domain is the domain to update within CloudFlare
15
-
Domain="domain"
16
-
// Record is the DNS record to update within CloudFlare, may be same as Domain or a subdomain
17
-
Record="record"
18
-
// Token is the CloudFlare API token
19
-
Token="token"
20
-
// JSONOutput indicates that logging should be in JSON format instead of pretty console format
21
-
JSONOutput="json"
22
-
// Verbose enables additional log output
23
-
Verbose="verbose"
24
-
// VerboseShort is the short flag for verbose
25
-
VerboseShort="v"
10
+
Config=StringOption{
11
+
Name: "config",
12
+
Description: fmt.Sprintf("Path to config file. If not specified will look for %s in the program dir (%s), $HOME/.config, or /etc, in that order", meta.DefaultConfigFilename, meta.ProgramDir),
13
+
}
14
+
Daemon=BoolOption{
15
+
Name: "daemon",
16
+
Default: false,
17
+
Description: "Run as a service, continually monitoring for IP changes",
18
+
}
19
+
Domain=StringOption{
20
+
Name: "domain",
21
+
Description: "Domain name in CloudFlare, e.g. example.com",
22
+
}
23
+
Record=StringOption{
24
+
Name: "record",
25
+
Description: "DNS record name in CloudFlare, may be subdomain or same as domain",
26
+
}
27
+
Token=StringOption{
28
+
Name: "token",
29
+
Description: "CloudFlare API token with permissions Zone:Zone:Read and Zone:DNS:Edit",
30
+
}
31
+
JSONOutput=StringOption{
32
+
Name: "log-format",
33
+
Default: "pretty",
34
+
Description: "Log format, either pretty or json, defaults to pretty",
35
+
}
36
+
Verbose=BoolOptionP{
37
+
Name: "verbose",
38
+
ShortName: "v",
39
+
Description: "Verbose logging, prints additional log output",
0 commit comments