From c8fe895d5b5b2928642c570fd5302c1ed6bf2688 Mon Sep 17 00:00:00 2001 From: lojies Date: Wed, 7 Sep 2016 09:46:56 +0800 Subject: [PATCH] add alias svc for create_service.go --- pkg/kubectl/cmd/create_service.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/kubectl/cmd/create_service.go b/pkg/kubectl/cmd/create_service.go index 8dd3aa6bb63..2ba816bf39f 100644 --- a/pkg/kubectl/cmd/create_service.go +++ b/pkg/kubectl/cmd/create_service.go @@ -31,9 +31,10 @@ import ( // NewCmdCreateService is a macro command to create a new namespace func NewCmdCreateService(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command { cmd := &cobra.Command{ - Use: "service", - Short: "Create a service using specified subcommand.", - Long: "Create a service using specified subcommand.", + Use: "service", + Aliases: []string{"svc"}, + Short: "Create a service using specified subcommand.", + Long: "Create a service using specified subcommand.", Run: func(cmd *cobra.Command, args []string) { cmd.Help() },