mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
Co-authored-by: VaismanLior <97836016+VaismanLior@users.noreply.github.com> Co-authored-by: AMF <work@afdesk.com>
18 lines
357 B
Go
18 lines
357 B
Go
package option
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// SecretOption holds the options for secret scanning
|
|
type SecretOption struct {
|
|
SecretConfigPath string
|
|
}
|
|
|
|
// NewSecretOption is the factory method to return secret options
|
|
func NewSecretOption(c *cli.Context) SecretOption {
|
|
return SecretOption{
|
|
SecretConfigPath: c.String("secret-config"),
|
|
}
|
|
}
|