2023-09-01 17:50:11 +02:00
|
|
|
package fix
|
|
|
|
|
|
|
|
import (
|
2023-09-06 16:44:50 +02:00
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/command"
|
2023-09-15 09:57:32 +02:00
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/fix/policy"
|
2023-09-04 17:15:55 +02:00
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/fix/test"
|
2023-09-01 17:50:11 +02:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Command() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
2023-09-13 11:53:19 +02:00
|
|
|
Use: "fix",
|
|
|
|
Short: command.FormatDescription(true, websiteUrl, true, description...),
|
|
|
|
Long: command.FormatDescription(false, websiteUrl, true, description...),
|
|
|
|
Example: command.FormatExamples(examples...),
|
|
|
|
Args: cobra.NoArgs,
|
|
|
|
SilenceUsage: true,
|
2023-09-01 17:50:11 +02:00
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
return cmd.Help()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
cmd.AddCommand(
|
2023-09-15 09:57:32 +02:00
|
|
|
policy.Command(),
|
2023-09-01 17:50:11 +02:00
|
|
|
test.Command(),
|
|
|
|
)
|
|
|
|
return cmd
|
|
|
|
}
|