Files
trivy/pkg/commands/option/kubernetes.go
Owen Rumney 2ae8faa7a8 feat(kubernetes): Add report flag for summary (#2112)
* feat(k8s): Add report flag for summary
* chore: add headings to the severity columns
* chore: make the default output of k8s summary table

Signed-off-by: Owen Rumney <owen.rumney@aquasec.com>
2022-05-13 19:02:01 +01:00

20 lines
434 B
Go

package option
import (
"github.com/urfave/cli/v2"
)
// KubernetesOption holds the options for Kubernetes scanning
type KubernetesOption struct {
Namespace string
ReportFormat string
}
// NewKubernetesOption is the factory method to return Kubernetes options
func NewKubernetesOption(c *cli.Context) KubernetesOption {
return KubernetesOption{
Namespace: c.String("namespace"),
ReportFormat: c.String("report"),
}
}