From 7f53b9642cca619b40e1f4655d3c570df32c4566 Mon Sep 17 00:00:00 2001 From: tickstep Date: Mon, 24 Jan 2022 22:17:33 +0800 Subject: [PATCH] update version to v0.1.2 --- aliyunpan.exe.manifest | 2 +- main.go | 26 +++++++++++++------------- resource_windows_386.syso | Bin 272099 -> 272099 bytes resource_windows_amd64.syso | Bin 272099 -> 272099 bytes versioninfo.json | 8 ++++---- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/aliyunpan.exe.manifest b/aliyunpan.exe.manifest index 8444ba22..700ac774 100644 --- a/aliyunpan.exe.manifest +++ b/aliyunpan.exe.manifest @@ -1,6 +1,6 @@ - + diff --git a/main.go b/main.go index ab0e3edb..b427dce4 100644 --- a/main.go +++ b/main.go @@ -50,7 +50,7 @@ const ( var ( // Version 版本号 - Version = "v0.1.1" + Version = "v0.1.2" historyFilePath = filepath.Join(config.GetConfigDir(), "aliyunpan_command_history.txt") @@ -200,8 +200,8 @@ func main() { } var ( - activeUser = config.Config.ActiveUser() - runeFunc = unicode.IsSpace + activeUser = config.Config.ActiveUser() + runeFunc = unicode.IsSpace cmdRuneFunc = func(r rune) bool { switch r { case '\'', '"': @@ -462,10 +462,10 @@ func main() { // 显示命令历史 { - Name: "history", - Aliases: []string{}, - Usage: "显示命令历史", - UsageText: app.Name + " history", + Name: "history", + Aliases: []string{}, + Usage: "显示命令历史", + UsageText: app.Name + " history", Description: `显示命令历史 示例: @@ -478,11 +478,11 @@ func main() { 3. 显示全部命令历史 aliyunpan history -n 0 `, - Category: "其他", + Category: "其他", Action: func(c *cli.Context) error { lineCount := 20 if c.IsSet("n") { - lineCount = c.Int("n") + lineCount = c.Int("n") } printTable := func(lines []string) { tb := cmdtable.NewTable(os.Stdout) @@ -490,7 +490,7 @@ func main() { tb.SetHeaderAlignment(tablewriter.ALIGN_LEFT) tb.SetColumnAlignment([]int{tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT}) idx := 1 - for _,line := range lines { + for _, line := range lines { if line == "" { continue } @@ -499,13 +499,13 @@ func main() { } tb.Render() } - if contents,err := ioutil.ReadFile(historyFilePath);err == nil { + if contents, err := ioutil.ReadFile(historyFilePath); err == nil { result := strings.Split(string(contents), "\n") if lineCount == 0 { printTable(result) } else { outputLine := make([]string, 0) - for idx := len(result)-1; idx >= 0; idx-- { + for idx := len(result) - 1; idx >= 0; idx-- { line := result[idx] if line != "" { outputLine = append(outputLine, line) @@ -515,7 +515,7 @@ func main() { } } lines := make([]string, 0) - for idx := len(outputLine)-1; idx >= 0; idx-- { + for idx := len(outputLine) - 1; idx >= 0; idx-- { lines = append(lines, outputLine[idx]) } printTable(lines) diff --git a/resource_windows_386.syso b/resource_windows_386.syso index a02c236404899941011df682078cb92da7d83734..1fe36df7cd92db12d4ba421f8331a6c664f7772f 100644 GIT binary patch delta 60 zcmaESR^ahjfrb{w7N!>FEiCsGIhhz389;z(`g28=_l!ovXEfU0uFN9E2;^p| NvdC>epu(ce1OQ5%5mEpE delta 60 zcmaESR^ahjfrb{w7N!>FEiCsGIT;xk89;z>`g28=_l$vXEfa2uFN9E2;^p| NvdC>epu(ce1OQ4F5lsL9 diff --git a/resource_windows_amd64.syso b/resource_windows_amd64.syso index 12ec10d59dc11a1faf20b6cc599ef9450b517582..89ae3481b6d35bf19e790ac57dac12688987d1d4 100644 GIT binary patch delta 60 zcmaESR^ahjfrb{w7N!>FEiCsGIhhz389;z(`g28=_l!ovXEfU0uFN9E2;^p| NvdC>epu(ce1OQ5%5mEpE delta 60 zcmaESR^ahjfrb{w7N!>FEiCsGIT;xk89;z>`g28=_l$vXEfa2uFN9E2;^p| NvdC>epu(ce1OQ4F5lsL9 diff --git a/versioninfo.json b/versioninfo.json index 740f001e..0b950a81 100644 --- a/versioninfo.json +++ b/versioninfo.json @@ -3,13 +3,13 @@ "FileVersion": { "Major": 0, "Minor": 1, - "Patch": 1, + "Patch": 2, "Build": 0 }, "ProductVersion": { "Major": 0, "Minor": 1, - "Patch": 1, + "Patch": 2, "Build": 0 }, "FileFlagsMask": "3f", @@ -22,14 +22,14 @@ "Comments": "", "CompanyName": "tickstep", "FileDescription": "阿里云盘客户端", - "FileVersion": "v0.1.1", + "FileVersion": "v0.1.2", "InternalName": "", "LegalCopyright": "© 2021 tickstep.", "LegalTrademarks": "", "OriginalFilename": "", "PrivateBuild": "", "ProductName": "aliyunpan", - "ProductVersion": "v0.1.1", + "ProductVersion": "v0.1.2", "SpecialBuild": "" }, "VarFileInfo": {