mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
add alias for createconfigmap
This commit is contained in:
parent
df8da19055
commit
4426c5fd6f
@ -56,6 +56,7 @@ var (
|
|||||||
func NewCmdCreateConfigMap(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command {
|
func NewCmdCreateConfigMap(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "configmap NAME [--from-file=[key=]source] [--from-literal=key1=value1] [--dry-run]",
|
Use: "configmap NAME [--from-file=[key=]source] [--from-literal=key1=value1] [--dry-run]",
|
||||||
|
Aliases: []string{"cm"},
|
||||||
Short: "Create a configmap from a local file, directory or literal value",
|
Short: "Create a configmap from a local file, directory or literal value",
|
||||||
Long: configMapLong,
|
Long: configMapLong,
|
||||||
Example: configMapExample,
|
Example: configMapExample,
|
||||||
|
Loading…
Reference in New Issue
Block a user