mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
22 lines
451 B
Go
22 lines
451 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
flag "github.com/spf13/pflag"
|
|
"k8s.io/cli-runtime/pkg/genericiooptions"
|
|
|
|
"github.com/ray-project/kuberay/kubectl-plugin/pkg/cmd"
|
|
)
|
|
|
|
func main() {
|
|
flags := flag.NewFlagSet("kubectl-ray", flag.ExitOnError)
|
|
flag.CommandLine = flags
|
|
ioStreams := genericiooptions.IOStreams{In: os.Stdin, Out: os.Stdout, ErrOut: os.Stderr}
|
|
|
|
root := cmd.NewRayCommand(ioStreams)
|
|
if err := root.Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|