package cmd import ( "github.com/cloud-native-application/rudrx/api/types" cmdutil "github.com/cloud-native-application/rudrx/pkg/cmd/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 `, Annotations: map[string]string{ types.TagCommandType: types.TypeApp, }, } cmd.AddCommand(NewAppListCommand(c, ioStreams), NewAppStatusCommand(c, ioStreams), NewDeleteCommand(c, ioStreams), NewAppShowCommand(ioStreams), NewRunCommand(c, ioStreams)) return cmd }