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
Convert a lot of command line arguments to snake case (gocsaf#498)
* Convert a lot of variables to snake case
* Add snakecase for variables made out of two words that had it in no version yet (for consistency)
* Adjust example files too
---------
Co-authored-by: JanHoefelmeyer <[email protected]>
ClientPassphrase*string`long:"client-passphrase" description:"Optional passphrase for the client cert (limited, experimental, see downloader doc)" value-name:"PASSPHRASE" toml:"client_passphrase"`
ClientPassphrase*string`long:"client_passphrase" description:"Optional passphrase for the client cert (limited, experimental, see downloader doc)" value-name:"PASSPHRASE" toml:"client_passphrase"`
37
37
Versionbool`long:"version" description:"Display version of the binary" toml:"-"`
Rate*float64`long:"rate" short:"r" description:"The average upper limit of https operations per second (defaults to unlimited)" toml:"rate"`
40
-
Range*models.TimeRange`long:"timerange" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"timerange"`
41
-
IgnorePattern []string`long:"ignorepattern" short:"i" description:"Do not download files if their URLs match any of the given PATTERNs" value-name:"PATTERN" toml:"ignorepattern"`
40
+
Range*models.TimeRange`long:"time_range" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"time_range"`
41
+
IgnorePattern []string`long:"ignore_pattern" short:"i" description:"Do not download files if their URLs match any of the given PATTERNs" value-name:"PATTERN" toml:"ignore_pattern"`
42
42
ExtraHeader http.Header`long:"header" short:"H" description:"One or more extra HTTP header fields" toml:"header"`
43
43
RemoteValidatorstring`long:"validator" description:"URL to validate documents remotely" value-name:"URL" toml:"validator"`
44
-
RemoteValidatorCachestring`long:"validatorcache" description:"FILE to cache remote validations" value-name:"FILE" toml:"validator_cache"`
45
-
RemoteValidatorPresets []string`long:"validatorpreset" description:"One or more presets to validate remotely" toml:"validator_preset"`
44
+
RemoteValidatorCachestring`long:"validator_cache" description:"FILE to cache remote validations" value-name:"FILE" toml:"validator_cache"`
45
+
RemoteValidatorPresets []string`long:"validator_preset" description:"One or more presets to validate remotely" toml:"validator_preset"`
46
46
47
47
Configstring`short:"c" long:"config" description:"Path to config TOML file" value-name:"TOML-FILE" toml:"-"`
ClientPassphrase*string`long:"client-passphrase" description:"Optional passphrase for the client cert (limited, experimental, see doc)" value-name:"PASSPHRASE" toml:"client_passphrase"`
47
+
IgnoreSignatureCheckbool`long:"ignore_sigcheck" description:"Ignore signature check results, just warn on mismatch" toml:"ignore_sigcheck"`
ClientPassphrase*string`long:"client_passphrase" description:"Optional passphrase for the client cert (limited, experimental, see doc)" value-name:"PASSPHRASE" toml:"client_passphrase"`
51
51
Versionbool`long:"version" description:"Display version of the binary" toml:"-"`
52
-
NoStorebool`long:"nostore" short:"n" description:"Do not store files" toml:"no_store"`
52
+
NoStorebool`long:"no_store" short:"n" description:"Do not store files" toml:"no_store"`
53
53
Rate*float64`long:"rate" short:"r" description:"The average upper limit of https operations per second (defaults to unlimited)" toml:"rate"`
54
54
Workerint`long:"worker" short:"w" description:"NUMber of concurrent downloads" value-name:"NUM" toml:"worker"`
55
-
Range*models.TimeRange`long:"timerange" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"timerange"`
55
+
Range*models.TimeRange`long:"time_range" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"time_range"`
56
56
Folderstring`long:"folder" short:"f" description:"Download into a given subFOLDER" value-name:"FOLDER" toml:"folder"`
57
-
IgnorePattern []string`long:"ignorepattern" short:"i" description:"Do not download files if their URLs match any of the given PATTERNs" value-name:"PATTERN" toml:"ignorepattern"`
57
+
IgnorePattern []string`long:"ignore_pattern" short:"i" description:"Do not download files if their URLs match any of the given PATTERNs" value-name:"PATTERN" toml:"ignore_pattern"`
58
58
ExtraHeader http.Header`long:"header" short:"H" description:"One or more extra HTTP header fields" toml:"header"`
59
59
60
60
RemoteValidatorstring`long:"validator" description:"URL to validate documents remotely" value-name:"URL" toml:"validator"`
61
-
RemoteValidatorCachestring`long:"validatorcache" description:"FILE to cache remote validations" value-name:"FILE" toml:"validatorcache"`
62
-
RemoteValidatorPresets []string`long:"validatorpreset" description:"One or more PRESETS to validate remotely" value-name:"PRESETS" toml:"validatorpreset"`
61
+
RemoteValidatorCachestring`long:"validator_cache" description:"FILE to cache remote validations" value-name:"FILE" toml:"validator_cache"`
62
+
RemoteValidatorPresets []string`long:"validator_preset" description:"One or more PRESETS to validate remotely" value-name:"PRESETS" toml:"validator_preset"`
63
63
64
64
//lint:ignore SA5008 We are using choice twice: strict, unsafe.
65
-
ValidationModevalidationMode`long:"validationmode" short:"m" choice:"strict" choice:"unsafe" value-name:"MODE" description:"MODE how strict the validation is" toml:"validation_mode"`
65
+
ValidationModevalidationMode`long:"validation_mode" short:"m" choice:"strict" choice:"unsafe" value-name:"MODE" description:"MODE how strict the validation is" toml:"validation_mode"`
66
66
67
-
ForwardURLstring`long:"forwardurl" description:"URL of HTTP endpoint to forward downloads to" value-name:"URL" toml:"forward_url"`
68
-
ForwardHeader http.Header`long:"forwardheader" description:"One or more extra HTTP header fields used by forwarding" toml:"forward_header"`
69
-
ForwardQueueint`long:"forwardqueue" description:"Maximal queue LENGTH before forwarder" value-name:"LENGTH" toml:"forward_queue"`
70
-
ForwardInsecurebool`long:"forwardinsecure" description:"Do not check TLS certificates from forward endpoint" toml:"forward_insecure"`
67
+
ForwardURLstring`long:"forward_url" description:"URL of HTTP endpoint to forward downloads to" value-name:"URL" toml:"forward_url"`
68
+
ForwardHeader http.Header`long:"forward_header" description:"One or more extra HTTP header fields used by forwarding" toml:"forward_header"`
69
+
ForwardQueueint`long:"forward_queue" description:"Maximal queue LENGTH before forwarder" value-name:"LENGTH" toml:"forward_queue"`
70
+
ForwardInsecurebool`long:"forward_insecure" description:"Do not check TLS certificates from forward endpoint" toml:"forward_insecure"`
71
71
72
-
LogFile*string`long:"logfile" description:"FILE to log downloading to" value-name:"FILE" toml:"log_file"`
72
+
LogFile*string`long:"log_file" description:"FILE to log downloading to" value-name:"FILE" toml:"log_file"`
73
73
//lint:ignore SA5008 We are using choice or than once: debug, info, warn, error
ClientPassphrase*string`long:"client-passphrase" description:"Optional passphrase for the client cert (limited, experimental, see downloader doc)" value-name:"PASSPHRASE" toml:"client_passphrase"`
ClientPassphrase*string`long:"client_passphrase" description:"Optional passphrase for the client cert (limited, experimental, see downloader doc)" value-name:"PASSPHRASE" toml:"client_passphrase"`
0 commit comments