mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
dc71610df7
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
package create
|
|
|
|
import (
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/command"
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/exception"
|
|
metricsconfig "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/metrics-config"
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/test"
|
|
userinfo "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/user-info"
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/values"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func Command() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "create",
|
|
Short: command.FormatDescription(true, websiteUrl, false, description...),
|
|
Long: command.FormatDescription(false, websiteUrl, false, description...),
|
|
Example: command.FormatExamples(examples...),
|
|
Args: cobra.NoArgs,
|
|
SilenceUsage: true,
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return cmd.Help()
|
|
},
|
|
}
|
|
cmd.AddCommand(
|
|
exception.Command(),
|
|
metricsconfig.Command(),
|
|
test.Command(),
|
|
userinfo.Command(),
|
|
values.Command(),
|
|
)
|
|
return cmd
|
|
}
|