Files
kubevela/pkg/commands/app.go
2020-10-30 11:42:27 +08:00

29 lines
707 B
Go

package commands
import (
"github.com/oam-dev/kubevela/api/types"
cmdutil "github.com/oam-dev/kubevela/pkg/commands/util"
"github.com/spf13/cobra"
)
func NewAppsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command {
cmd := &cobra.Command{
Use: "app",
DisableFlagsInUseLine: true,
Short: "Manage applications",
Long: "Manage applications with ls, show, delete, run",
Example: `vela app <command>`,
Annotations: map[string]string{
types.TagCommandType: types.TypeApp,
},
}
cmd.AddCommand(
NewAppStatusCommand(c, ioStreams),
NewAppShowCommand(ioStreams),
NewRunCommand(c, ioStreams))
return cmd
}