mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-24 03:46:37 +02:00
Tool/fix install version (#544)
* fix install version * update version to v0.4.2 Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
This commit is contained in:
parent
5475b62938
commit
79353faf05
@ -20,6 +20,7 @@ const (
|
|||||||
toolDoc = "https://github.com/go-kratos/kratos/blob/master/doc/wiki-cn/kratos-tool.md"
|
toolDoc = "https://github.com/go-kratos/kratos/blob/master/doc/wiki-cn/kratos-tool.md"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Tool is kratos tool.
|
||||||
type Tool struct {
|
type Tool struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Alias string `json:"alias"`
|
Alias string `json:"alias"`
|
||||||
|
@ -6,8 +6,8 @@ var toolIndexs = []*Tool{
|
|||||||
{
|
{
|
||||||
Name: "kratos",
|
Name: "kratos",
|
||||||
Alias: "kratos",
|
Alias: "kratos",
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
Install: "go get -u github.com/go-kratos/kratos/tool/kratos",
|
Install: "go get -u github.com/go-kratos/kratos/tool/kratos@" + Version,
|
||||||
Summary: "Kratos工具集本体",
|
Summary: "Kratos工具集本体",
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
Author: "kratos",
|
Author: "kratos",
|
||||||
@ -16,26 +16,17 @@ var toolIndexs = []*Tool{
|
|||||||
{
|
{
|
||||||
Name: "protoc",
|
Name: "protoc",
|
||||||
Alias: "kratos-protoc",
|
Alias: "kratos-protoc",
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-protoc",
|
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-protoc@" + Version,
|
||||||
Summary: "快速方便生成pb.go的protoc封装,windows、Linux请先安装protoc工具",
|
Summary: "快速方便生成pb.go的protoc封装,windows、Linux请先安装protoc工具",
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
Author: "kratos",
|
Author: "kratos",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "swagger",
|
|
||||||
Alias: "swagger",
|
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
|
||||||
Install: "go get -u github.com/go-swagger/go-swagger/cmd/swagger",
|
|
||||||
Summary: "swagger api文档",
|
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
|
||||||
Author: "goswagger.io",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "genbts",
|
Name: "genbts",
|
||||||
Alias: "kratos-gen-bts",
|
Alias: "kratos-gen-bts",
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-bts",
|
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-bts@" + Version,
|
||||||
Summary: "缓存回源逻辑代码生成器",
|
Summary: "缓存回源逻辑代码生成器",
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
Author: "kratos",
|
Author: "kratos",
|
||||||
@ -43,25 +34,17 @@ var toolIndexs = []*Tool{
|
|||||||
{
|
{
|
||||||
Name: "genmc",
|
Name: "genmc",
|
||||||
Alias: "kratos-gen-mc",
|
Alias: "kratos-gen-mc",
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-mc",
|
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-mc@" + Version,
|
||||||
Summary: "mc缓存代码生成",
|
Summary: "mc缓存代码生成",
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
Author: "kratos",
|
Author: "kratos",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "wire",
|
|
||||||
Alias: "wire",
|
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
|
||||||
Install: "go get -u github.com/google/wire/cmd/wire",
|
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
|
||||||
Hidden: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "genproject",
|
Name: "genproject",
|
||||||
Alias: "kratos-gen-project",
|
Alias: "kratos-gen-project",
|
||||||
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-project",
|
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-project@" + Version,
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
Hidden: true,
|
Hidden: true,
|
||||||
Requirements: []string{"wire"},
|
Requirements: []string{"wire"},
|
||||||
@ -69,8 +52,8 @@ var toolIndexs = []*Tool{
|
|||||||
{
|
{
|
||||||
Name: "testgen",
|
Name: "testgen",
|
||||||
Alias: "testgen",
|
Alias: "testgen",
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
Install: "go get -u github.com/go-kratos/kratos/tool/testgen",
|
Install: "go get -u github.com/go-kratos/kratos/tool/testgen@" + Version,
|
||||||
Summary: "测试代码生成",
|
Summary: "测试代码生成",
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
Author: "kratos",
|
Author: "kratos",
|
||||||
@ -78,10 +61,28 @@ var toolIndexs = []*Tool{
|
|||||||
{
|
{
|
||||||
Name: "testcli",
|
Name: "testcli",
|
||||||
Alias: "testcli",
|
Alias: "testcli",
|
||||||
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
Install: "go get -u github.com/go-kratos/kratos/tool/testcli",
|
Install: "go get -u github.com/go-kratos/kratos/tool/testcli@" + Version,
|
||||||
Summary: "测试代码运行",
|
Summary: "测试代码运行",
|
||||||
Platform: []string{"darwin", "linux", "windows"},
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
Author: "kratos",
|
Author: "kratos",
|
||||||
},
|
},
|
||||||
|
// third party
|
||||||
|
{
|
||||||
|
Name: "wire",
|
||||||
|
Alias: "wire",
|
||||||
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
|
Install: "go get -u github.com/google/wire/cmd/wire",
|
||||||
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
|
Hidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "swagger",
|
||||||
|
Alias: "swagger",
|
||||||
|
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
|
||||||
|
Install: "go get -u github.com/go-swagger/go-swagger/cmd/swagger",
|
||||||
|
Summary: "swagger api文档",
|
||||||
|
Platform: []string{"darwin", "linux", "windows"},
|
||||||
|
Author: "goswagger.io",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// Version is version
|
// Version is version
|
||||||
Version = "0.4.1"
|
Version = "v0.4.2"
|
||||||
// BuildTime is BuildTime
|
// BuildTime is BuildTime
|
||||||
BuildTime = "2020/3/29"
|
BuildTime = "2020/3/29"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user