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 (
_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:."
)

@ -7,7 +7,7 @@ import (
)
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:.`
)

@ -7,7 +7,7 @@ import (
)
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:."
)

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

Loading…
Cancel
Save