mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
24 lines
393 B
Go
24 lines
393 B
Go
package cluster
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewCmdCluster() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "cluster <command>",
|
|
Short: "Manage ray cluster",
|
|
Long: ``,
|
|
Annotations: map[string]string{
|
|
"IsCore": "true",
|
|
},
|
|
}
|
|
|
|
cmd.AddCommand(newCmdGet())
|
|
cmd.AddCommand(newCmdList())
|
|
cmd.AddCommand(newCmdCreate())
|
|
cmd.AddCommand(newCmdDelete())
|
|
|
|
return cmd
|
|
}
|