Spaces:
Sleeping
Sleeping
File size: 695 Bytes
287a0bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
package main
import (
"fmt"
"os"
"github.com/chroma/chroma-coordinator/cmd/grpccoordinator"
"github.com/chroma/chroma-coordinator/internal/utils"
"github.com/rs/zerolog"
"github.com/spf13/cobra"
"go.uber.org/automaxprocs/maxprocs"
)
var (
rootCmd = &cobra.Command{
Use: "chroma",
Short: "Chroma root command",
Long: `Chroma root command`,
}
)
func init() {
rootCmd.AddCommand(grpccoordinator.Cmd)
}
func main() {
utils.LogLevel = zerolog.DebugLevel
utils.ConfigureLogger()
if _, err := maxprocs.Set(); err != nil {
_, _ = fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
if err := rootCmd.Execute(); err != nil {
_, _ = fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
|