You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/cmd/kratos/main.go

27 lines
538 B

package main
import (
"log"
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/new"
"github.com/go-kratos/kratos/cmd/kratos/v2/internal/proto"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "kratos",
Short: "Kratos: An elegant toolkit for Go microservices.",
Long: `Kratos: An elegant toolkit for Go microservices.`,
Version: Version,
}
func init() {
rootCmd.AddCommand(new.CmdNew)
rootCmd.AddCommand(proto.CmdProto)
}
func main() {
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)
}
}