Merge pull request #985 from zzxwill/capability-show

Change "vela show" function name
This commit is contained in:
Jianbo Sun
2021-02-02 09:51:23 +08:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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),
+2 -2
View File
@@ -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",