From 86db8de125bd07828d41fdf1886dffe3bb222aa3 Mon Sep 17 00:00:00 2001 From: zzxwill Date: Mon, 1 Feb 2021 17:45:02 +0800 Subject: [PATCH] Change "vela show" function name Also updated help vela help message --- pkg/commands/cli.go | 4 ++-- pkg/commands/show.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/commands/cli.go b/pkg/commands/cli.go index 657ddde2c..4301ff347 100644 --- a/pkg/commands/cli.go +++ b/pkg/commands/cli.go @@ -26,7 +26,7 @@ func NewCommand() *cobra.Command { DisableFlagParsing: true, Run: func(cmd *cobra.Command, args []string) { allCommands := cmd.Commands() - cmd.Printf("✈️ An Easy-to-use yet Fully Extensible App Platform based on Kubernetes and Open Application Model.\n\nUsage:\n vela [flags]\n vela [command]\n\nAvailable Commands:\n\n") + cmd.Printf("A Highly Extensible Platform Engine based on Kubernetes and Open Application Model.\n\nUsage:\n vela [flags]\n vela [command]\n\nAvailable Commands:\n\n") PrintHelpByTag(cmd, allCommands, types.TypeStart) PrintHelpByTag(cmd, allCommands, types.TypeApp) PrintHelpByTag(cmd, allCommands, types.TypeCap) @@ -58,11 +58,11 @@ func NewCommand() *cobra.Command { NewInitCommand(commandArgs, ioStream), NewUpCommand(commandArgs, ioStream), NewExportCommand(commandArgs, ioStream), + NewCapabilityShowCommand(commandArgs, ioStream), // Apps NewListCommand(commandArgs, ioStream), NewDeleteCommand(commandArgs, ioStream), - NewAppShowCommand(commandArgs, ioStream), NewAppStatusCommand(commandArgs, ioStream), NewExecCommand(commandArgs, ioStream), NewPortForwardCommand(commandArgs, ioStream), diff --git a/pkg/commands/show.go b/pkg/commands/show.go index de2437cc8..6d8423c2c 100644 --- a/pkg/commands/show.go +++ b/pkg/commands/show.go @@ -40,8 +40,8 @@ const ( var webSite bool -// NewAppShowCommand shows the reference doc for a workload type or trait -func NewAppShowCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command { +// NewCapabilityShowCommand shows the reference doc for a workload type or trait +func NewCapabilityShowCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command { cmd := &cobra.Command{ Use: "show", Short: "Show the reference doc for a workload type or trait",