44 lines
1.0 KiB
Go
44 lines
1.0 KiB
Go
package app
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewAppCommand creates the app command and its subcommands
|
|
func NewAppCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "app",
|
|
Short: "Manage Wild Cloud applications",
|
|
Long: `Manage applications in your Wild Cloud cluster.
|
|
|
|
Applications are deployed as Kubernetes workloads with associated configuration,
|
|
secrets, and persistent storage as needed.`,
|
|
}
|
|
|
|
// Add subcommands
|
|
cmd.AddCommand(
|
|
newListCommand(),
|
|
newFetchCommand(),
|
|
newAddCommand(),
|
|
newDeployCommand(),
|
|
newDeleteCommand(),
|
|
newBackupCommand(),
|
|
newRestoreCommand(),
|
|
newDoctorCommand(),
|
|
)
|
|
|
|
return cmd
|
|
}
|
|
|
|
// newListCommand is implemented in list.go
|
|
// newFetchCommand is implemented in fetch.go
|
|
// newAddCommand is implemented in add.go
|
|
// newDeployCommand is implemented in deploy.go
|
|
|
|
// newDeleteCommand is implemented in delete.go
|
|
|
|
// newBackupCommand is implemented in backup.go
|
|
// newRestoreCommand is implemented in restore.go
|
|
|
|
// newDoctorCommand is implemented in doctor.go
|