First commit of golang CLI.
This commit is contained in:
29
wild-cli/cmd/wild/cluster/cluster.go
Normal file
29
wild-cli/cmd/wild/cluster/cluster.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package cluster
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
// NewClusterCommand creates the cluster command and its subcommands
|
||||
func NewClusterCommand() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "cluster",
|
||||
Short: "Manage Wild Cloud cluster",
|
||||
Long: `Manage the Kubernetes cluster infrastructure.
|
||||
|
||||
This includes node management, configuration generation, and service deployment.`,
|
||||
}
|
||||
|
||||
// Add subcommands
|
||||
cmd.AddCommand(
|
||||
newConfigCommand(),
|
||||
newNodesCommand(),
|
||||
newServicesCommand(),
|
||||
)
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
// newConfigCommand is implemented in config.go
|
||||
// newNodesCommand is implemented in nodes.go
|
||||
// newServicesCommand is implemented in services.go
|
Reference in New Issue
Block a user