mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
* chore: name all cli command files the same Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * refactor: move all cli commands in a commands package Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * root Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
27 lines
786 B
Go
27 lines
786 B
Go
package create
|
|
|
|
import (
|
|
metricsconfig "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/metrics-config"
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/test"
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/userinfo"
|
|
"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: "Provides a command-line interface to help with the creation of various Kyverno resources.",
|
|
Example: "",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return cmd.Help()
|
|
},
|
|
}
|
|
cmd.AddCommand(
|
|
metricsconfig.Command(),
|
|
test.Command(),
|
|
userinfo.Command(),
|
|
values.Command(),
|
|
)
|
|
return cmd
|
|
}
|