mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Merge branch 'main' into checker-timerange-report
This commit is contained in:
commit
dd1e38fc0c
2 changed files with 11 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ type config struct {
|
||||||
Rate *float64 `long:"rate" short:"r" description:"The average upper limit of https operations per second (defaults to unlimited)" toml:"rate"`
|
Rate *float64 `long:"rate" short:"r" description:"The average upper limit of https operations per second (defaults to unlimited)" toml:"rate"`
|
||||||
Years *uint `long:"years" short:"y" description:"Number of years to look back from now" value-name:"YEARS" toml:"years"`
|
Years *uint `long:"years" short:"y" description:"Number of years to look back from now" value-name:"YEARS" toml:"years"`
|
||||||
Range *models.TimeRange `long:"timerange" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"timerange"`
|
Range *models.TimeRange `long:"timerange" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"timerange"`
|
||||||
IgnorePattern []string `long:"ignorepattern" short:"i" description:"Dont download files if there URLs match any of the given PATTERNs" value-name:"PATTERN" toml:"ignorepattern"`
|
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"`
|
||||||
ExtraHeader http.Header `long:"header" short:"H" description:"One or more extra HTTP header fields" toml:"header"`
|
ExtraHeader http.Header `long:"header" short:"H" description:"One or more extra HTTP header fields" toml:"header"`
|
||||||
|
|
||||||
RemoteValidator string `long:"validator" description:"URL to validate documents remotely" value-name:"URL" toml:"validator"`
|
RemoteValidator string `long:"validator" description:"URL to validate documents remotely" value-name:"URL" toml:"validator"`
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
Usage:
|
Usage:
|
||||||
csaf_checker [OPTIONS] domain...
|
csaf_checker [OPTIONS] domain...
|
||||||
|
|
||||||
|
Application Options:
|
||||||
Application Options:
|
Application Options:
|
||||||
-o, --output=REPORT-FILE File name of the generated report
|
-o, --output=REPORT-FILE File name of the generated report
|
||||||
-f, --format=[json|html] Format of report (default: json)
|
-f, --format=[json|html] Format of report (default: json)
|
||||||
|
|
@ -17,7 +18,7 @@ Application Options:
|
||||||
-r, --rate= The average upper limit of https operations per second (defaults to unlimited)
|
-r, --rate= The average upper limit of https operations per second (defaults to unlimited)
|
||||||
-y, --years=YEARS Number of years to look back from now
|
-y, --years=YEARS Number of years to look back from now
|
||||||
-t, --timerange=RANGE RANGE of time from which advisories to download
|
-t, --timerange=RANGE RANGE of time from which advisories to download
|
||||||
-i, --ignorepattern=PATTERN Dont download files if there URLs match any of the given PATTERNs
|
-i, --ignorepattern=PATTERN Do not download files if their URLs match any of the given PATTERNs
|
||||||
-H, --header= One or more extra HTTP header fields
|
-H, --header= One or more extra HTTP header fields
|
||||||
--validator=URL URL to validate documents remotely
|
--validator=URL URL to validate documents remotely
|
||||||
--validatorcache=FILE FILE to cache remote validations
|
--validatorcache=FILE FILE to cache remote validations
|
||||||
|
|
@ -100,8 +101,16 @@ It is only allowed to specify one off them.
|
||||||
All interval boundaries are inclusive.
|
All interval boundaries are inclusive.
|
||||||
|
|
||||||
You can ignore certain advisories while checking by specifying a list
|
You can ignore certain advisories while checking by specifying a list
|
||||||
|
<<<<<<< HEAD
|
||||||
of regular expressions to match their URLs by using the `ignorepattern` option.
|
of regular expressions to match their URLs by using the `ignorepattern` option.
|
||||||
E.g. `-i='.*white.*' -i='*.red.*'` will ignore files which URLs contain the sub strings **white** or **red**.
|
E.g. `-i='.*white.*' -i='*.red.*'` will ignore files which URLs contain the sub strings **white** or **red**.
|
||||||
|
=======
|
||||||
|
of regular expressions to match their URLs by using the `ignorepattern`
|
||||||
|
option.
|
||||||
|
|
||||||
|
E.g. `-i='.*white.*' -i='*.red.*'` will ignore files which URLs contain
|
||||||
|
the sub strings **white** or **red**.
|
||||||
|
>>>>>>> main
|
||||||
In the config file this has to be noted as:
|
In the config file this has to be noted as:
|
||||||
```
|
```
|
||||||
ignorepattern = [".*white.*", ".*red.*"]
|
ignorepattern = [".*white.*", ".*red.*"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue