mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
Co-authored-by: tspearconquest <81998567+tspearconquest@users.noreply.github.com> Co-authored-by: knqyf263 <knqyf263@gmail.com>
18 lines
341 B
Go
18 lines
341 B
Go
package option
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// ImageOption holds the options for scanning images
|
|
type ImageOption struct {
|
|
ScanRemovedPkgs bool
|
|
}
|
|
|
|
// NewImageOption is the factory method to return ImageOption
|
|
func NewImageOption(c *cli.Context) ImageOption {
|
|
return ImageOption{
|
|
ScanRemovedPkgs: c.Bool("removed-pkgs"),
|
|
}
|
|
}
|