mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
Merge pull request #985 from zzxwill/capability-show
Change "vela show" function name
This commit is contained in:
+2
-2
@@ -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),
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user