mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
24 lines
550 B
Go
24 lines
550 B
Go
package cmd
|
|
|
|
import (
|
|
cluster "github.com/ray-project/kuberay/kubectl-plugin/pkg/cmd/cluster"
|
|
"k8s.io/cli-runtime/pkg/genericclioptions"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewRayCommand(streams genericclioptions.IOStreams) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "ray",
|
|
Short: "ray kubectl plugin",
|
|
Long: "Manage RayCluster resources.",
|
|
SilenceUsage: true,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
cmd.HelpFunc()(cmd, args)
|
|
},
|
|
}
|
|
|
|
cmd.AddCommand(cluster.NewClusterCommand(streams))
|
|
return cmd
|
|
}
|