2023-07-07 13:17:24 +02:00
|
|
|
package create
|
|
|
|
|
|
|
|
import (
|
2023-09-04 17:15:55 +02:00
|
|
|
metricsconfig "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/metrics-config"
|
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/test"
|
2023-09-05 04:14:28 +02:00
|
|
|
userinfo "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/user-info"
|
2023-09-04 17:15:55 +02:00
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/values"
|
2023-09-05 04:14:28 +02:00
|
|
|
cobrautils "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/utils/cobra"
|
2023-07-07 13:17:24 +02:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Command() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "create",
|
2023-09-05 04:14:28 +02:00
|
|
|
Short: cobrautils.FormatDescription(true, websiteUrl, false, description...),
|
|
|
|
Long: cobrautils.FormatDescription(false, websiteUrl, false, description...),
|
|
|
|
Example: cobrautils.FormatExamples(examples...),
|
2023-07-07 13:17:24 +02:00
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
return cmd.Help()
|
|
|
|
},
|
|
|
|
}
|
2023-07-31 11:03:27 +02:00
|
|
|
cmd.AddCommand(
|
|
|
|
metricsconfig.Command(),
|
|
|
|
test.Command(),
|
|
|
|
userinfo.Command(),
|
2023-07-31 17:48:00 +02:00
|
|
|
values.Command(),
|
2023-07-31 11:03:27 +02:00
|
|
|
)
|
2023-07-07 13:17:24 +02:00
|
|
|
return cmd
|
|
|
|
}
|