feat: add k8s subcommand (#2065)

Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Jose Donizetti
2022-05-12 15:11:29 -03:00
committed by GitHub
parent a39133a13c
commit 029dd76c30
13 changed files with 765 additions and 21 deletions

View File

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