Skip to content

Commit

Permalink
Feat: 为 --version 增加详细版本信息
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Jan 29, 2020
1 parent 3e47366 commit 991f816
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type Client struct {
func main() {
cobra.MousetrapHelpText = "" // 允许在 Windows(R) 下直接双击运行
config := ClientConfig{}
smartConfig.VersionDetail = app.VersionDetail()
smartConfig.LoadConfig(app.AppName, app.Version, &config)

client := NewClient(config)
Expand Down

0 comments on commit 991f816

Please sign in to comment.