First commit of golang CLI.

This commit is contained in:
2025-08-31 11:51:11 -07:00
parent 4ca06aecb6
commit f0a2098f11
51 changed files with 8840 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
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