fix kratos update

pull/172/head
Tony 5 years ago
parent aad6ecf1b6
commit 6e4ab6cf3c
  1. 2
      tool/kratos-protoc/bm.go
  2. 2
      tool/kratos-protoc/grpc.go
  3. 2
      tool/kratos-protoc/swagger.go
  4. 40
      tool/kratos/tool_index.go

@ -7,7 +7,7 @@ import (
) )
const ( const (
_getBMGen = "go get github.com/bilibili/kratos/tool/protobuf/protoc-gen-bm" _getBMGen = "go get -u github.com/bilibili/kratos/tool/protobuf/protoc-gen-bm"
_bmProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bm_out=explicit_http=true:." _bmProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bm_out=explicit_http=true:."
) )

@ -7,7 +7,7 @@ import (
) )
const ( const (
_getGRPCGen = "go get github.com/gogo/protobuf/protoc-gen-gofast" _getGRPCGen = "go get -u github.com/gogo/protobuf/protoc-gen-gofast"
_grpcProtoc = `protoc --proto_path=%s --proto_path=%s --proto_path=%s --gofast_out=plugins=grpc:.` _grpcProtoc = `protoc --proto_path=%s --proto_path=%s --proto_path=%s --gofast_out=plugins=grpc:.`
) )

@ -7,7 +7,7 @@ import (
) )
const ( const (
_getSwaggerGen = "go get github.com/bilibili/kratos/tool/protobuf/protoc-gen-bswagger" _getSwaggerGen = "go get -u github.com/bilibili/kratos/tool/protobuf/protoc-gen-bswagger"
_swaggerProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bswagger_out=explicit_http=true:." _swaggerProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bswagger_out=explicit_http=true:."
) )

@ -6,7 +6,7 @@ var toolIndexs = []*Tool{
&Tool{ &Tool{
Name: "kratos", Name: "kratos",
Alias: "kratos", Alias: "kratos",
BuildTime: time.Date(2019, 4, 2, 0, 0, 0, 0, time.Local), BuildTime: time.Date(2019, 6, 21, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/bilibili/kratos/tool/kratos", Install: "go get -u github.com/bilibili/kratos/tool/kratos",
Summary: "Kratos工具集本体", Summary: "Kratos工具集本体",
Platform: []string{"darwin", "linux", "windows"}, Platform: []string{"darwin", "linux", "windows"},
@ -15,7 +15,7 @@ var toolIndexs = []*Tool{
&Tool{ &Tool{
Name: "protoc", Name: "protoc",
Alias: "kratos-protoc", Alias: "kratos-protoc",
BuildTime: time.Date(2019, 5, 4, 0, 0, 0, 0, time.Local), BuildTime: time.Date(2019, 6, 21, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/bilibili/kratos/tool/kratos-protoc", Install: "go get -u github.com/bilibili/kratos/tool/kratos-protoc",
Summary: "快速方便生成pb.go的protoc封装,windows、Linux请先安装protoc工具", Summary: "快速方便生成pb.go的protoc封装,windows、Linux请先安装protoc工具",
Platform: []string{"darwin", "linux", "windows"}, Platform: []string{"darwin", "linux", "windows"},
@ -30,22 +30,22 @@ var toolIndexs = []*Tool{
Platform: []string{"darwin", "linux", "windows"}, Platform: []string{"darwin", "linux", "windows"},
Author: "goswagger.io", Author: "goswagger.io",
}, },
&Tool{ &Tool{
Name: "genbts", Name: "genbts",
Alias: "kratos-gen-bts", Alias: "kratos-gen-bts",
BuildTime: time.Date(2019, 5, 5, 0, 0, 0, 0, time.Local), BuildTime: time.Date(2019, 5, 5, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/bilibili/kratos/tool/kratos-gen-bts", Install: "go get -u github.com/bilibili/kratos/tool/kratos-gen-bts",
Summary: "缓存回源逻辑代码生成器", Summary: "缓存回源逻辑代码生成器",
Platform: []string{"darwin", "linux", "windows"}, Platform: []string{"darwin", "linux", "windows"},
Author: "kratos", Author: "kratos",
}, },
&Tool{ &Tool{
Name: "genmc", Name: "genmc",
Alias: "kratos-gen-mc", Alias: "kratos-gen-mc",
BuildTime: time.Date(2019, 5, 5, 0, 0, 0, 0, time.Local), BuildTime: time.Date(2019, 5, 5, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/bilibili/kratos/tool/kratos-gen-mc", Install: "go get -u github.com/bilibili/kratos/tool/kratos-gen-mc",
Summary: "mc缓存代码生成", Summary: "mc缓存代码生成",
Platform: []string{"darwin", "linux", "windows"}, Platform: []string{"darwin", "linux", "windows"},
Author: "kratos", Author: "kratos",
}, },
} }

Loading…
Cancel
Save