mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
refactor: add allowed values for CLI flags (#4800)
* refactor: rename Value to Default * refactor: support allowed values for CLI flags * docs: auto-generate * test: fix * test: add tests for flags
This commit is contained in:
@@ -17,8 +17,8 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
// Set a dummy path for the documents
|
||||
flag.CacheDirFlag.Value = "/path/to/cache"
|
||||
flag.ModuleDirFlag.Value = "$HOME/.trivy/modules"
|
||||
flag.CacheDirFlag.Default = "/path/to/cache"
|
||||
flag.ModuleDirFlag.Default = "$HOME/.trivy/modules"
|
||||
|
||||
cmd := commands.NewApp(ver)
|
||||
cmd.DisableAutoGenTag = true
|
||||
|
||||
Reference in New Issue
Block a user