Skip to content

Commit

Permalink
Tool/fix install version (#544)
Browse files Browse the repository at this point in the history
* fix install version

* update version to v0.4.2

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
  • Loading branch information
Tony and tonybase authored Mar 31, 2020
1 parent 5475b62 commit 79353fa
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 32 deletions.
1 change: 1 addition & 0 deletions tool/kratos/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
toolDoc = "https://github.com/go-kratos/kratos/blob/master/doc/wiki-cn/kratos-tool.md"
)

// Tool is kratos tool.
type Tool struct {
Name string `json:"name"`
Alias string `json:"alias"`
Expand Down
63 changes: 32 additions & 31 deletions tool/kratos/tool_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ var toolIndexs = []*Tool{
{
Name: "kratos",
Alias: "kratos",
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/kratos",
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/kratos@" + Version,
Summary: "Kratos工具集本体",
Platform: []string{"darwin", "linux", "windows"},
Author: "kratos",
Expand All @@ -16,72 +16,73 @@ var toolIndexs = []*Tool{
{
Name: "protoc",
Alias: "kratos-protoc",
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-protoc",
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-protoc@" + Version,
Summary: "快速方便生成pb.go的protoc封装,windows、Linux请先安装protoc工具",
Platform: []string{"darwin", "linux", "windows"},
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",
Alias: "kratos-gen-bts",
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-bts",
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@" + Version,
Summary: "缓存回源逻辑代码生成器",
Platform: []string{"darwin", "linux", "windows"},
Author: "kratos",
},
{
Name: "genmc",
Alias: "kratos-gen-mc",
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-mc",
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@" + Version,
Summary: "mc缓存代码生成",
Platform: []string{"darwin", "linux", "windows"},
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",
Alias: "kratos-gen-project",
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-project",
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/kratos-gen-project@" + Version,
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
Platform: []string{"darwin", "linux", "windows"},
Hidden: true,
Requirements: []string{"wire"},
},
{
Name: "testgen",
Alias: "testgen",
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/testgen",
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/testgen@" + Version,
Summary: "测试代码生成",
Platform: []string{"darwin", "linux", "windows"},
Author: "kratos",
},
{
Name: "testcli",
Alias: "testcli",
BuildTime: time.Date(2020, 3, 29, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/testcli",
BuildTime: time.Date(2020, 3, 31, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/go-kratos/kratos/tool/testcli@" + Version,
Summary: "测试代码运行",
Platform: []string{"darwin", "linux", "windows"},
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",
},
}
2 changes: 1 addition & 1 deletion tool/kratos/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var (
// Version is version
Version = "0.4.1"
Version = "v0.4.2"
// BuildTime is BuildTime
BuildTime = "2020/3/29"
)
Expand Down

0 comments on commit 79353fa

Please sign in to comment.