diff --git a/.vscode/launch.json b/.vscode/launch.json index 5528ba8..0381fee 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,7 +14,8 @@ "showLog": true, // "args": ["base64","-d","-i","~/Desktop/base64.txt"] // "args": ["time","20220802"] - "args": ["uuid","-c","5","-v","4"] + // "args": ["uuid","-c","5","-v","4"] + "args": ["readme"] } ] } diff --git a/README.md b/README.md index c31c4cb..3eb21c4 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,12 @@ brew install shenguanjiejie/tap/workwork ``` or ```shell -wget https://github.com/shenguanjiejie/workwork/releases/download/v0.0.4/workwork_0.0.4_darwin.tar.gz && tar -zxvf ./workwork_0.0.4_darwin.tar.gz && mv ./ww /usr/local/bin && rm ./workwork_0.0.4_darwin.tar.gz && rm ./ww +wget https://github.com/shenguanjiejie/workwork/releases/download/v1.0.1/workwork_1.0.1_darwin.tar.gz && tar -zxvf ./workwork_1.0.1_darwin.tar.gz && mv ./ww /usr/local/bin && rm ./workwork_1.0.1_darwin.tar.gz && rm ./ww ``` or

[Download](https://github.com/shenguanjiejie/workwork/releases), Unpack, and move "ww" to /usr/local/bin.
到[release页面](https://github.com/shenguanjiejie/workwork/releases)下载后, 解压出ww文件, 放在/usr/local/bin目录下即可 ### Linux ```shell -wget https://github.com/shenguanjiejie/workwork/releases/download/v0.0.4/workwork_0.0.4_linux_x86_64.tar.gz && tar -zxvf ./workwork_0.0.4_linux_x86_64.tar.gz && mv ./ww /usr/local/bin && rm ./workwork_0.0.4_linux_x86_64.tar.gz && rm ./ww +wget https://github.com/shenguanjiejie/workwork/releases/download/v1.0.1/workwork_1.0.1_linux_x86_64.tar.gz && tar -zxvf ./workwork_1.0.1_linux_x86_64.tar.gz && mv ./ww /usr/local/bin && rm ./workwork_1.0.1_linux_x86_64.tar.gz && rm ./ww ``` or

[Download](https://github.com/shenguanjiejie/workwork/releases), Unpack, and move "ww" to /usr/local/bin.
到[release页面](https://github.com/shenguanjiejie/workwork/releases)下载后, 解压出ww文件, 放在/usr/local/bin目录下即可 # base64 diff --git a/build.sh b/build.sh index a200de9..530381e 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -version="0.0.4" +version="1.0.1" GOOS=linux GOARCH=amd64 go build -o ww tar -zcvf workwork_${version}_linux_x86_64.tar.gz ww diff --git a/cmd/readme.go b/cmd/readme.go index 836cb83..97f9c8d 100644 --- a/cmd/readme.go +++ b/cmd/readme.go @@ -1,4 +1,5 @@ package cmd + /* Copyright © 2022 shenguanjiejie <835166018@qq.com> @@ -15,7 +16,6 @@ See the License for the specific language governing permissions and limitations under the License. */ - import ( "fmt" "os" @@ -32,7 +32,7 @@ var readmeCmd = &cobra.Command{ Long: `readme`, Run: func(cmd *cobra.Command, args []string) { worksAnchor, works := works() - version := "0.0.4" + version := "1.0.1" download := "or

[Download](https://github.com/shenguanjiejie/workwork/releases), Unpack, and move \"ww\" to /usr/local/bin.
到[release页面](https://github.com/shenguanjiejie/workwork/releases)下载后, 解压出ww文件, 放在/usr/local/bin目录下即可\n" macInstall := fmt.Sprintf("# Install\n### Mac\n```shell\nbrew install shenguanjiejie/tap/workwork\n```\nor\n```shell\nwget https://github.com/shenguanjiejie/workwork/releases/download/v%s/workwork_%s_darwin.tar.gz && tar -zxvf ./workwork_%s_darwin.tar.gz && mv ./ww /usr/local/bin && rm ./workwork_%s_darwin.tar.gz && rm ./ww\n```\n%s", version, version, version, version, download) linuxInstall := fmt.Sprintf("### Linux\n```shell\nwget https://github.com/shenguanjiejie/workwork/releases/download/v%s/workwork_%s_linux_x86_64.tar.gz && tar -zxvf ./workwork_%s_linux_x86_64.tar.gz && mv ./ww /usr/local/bin && rm ./workwork_%s_linux_x86_64.tar.gz && rm ./ww\n```\n%s", version, version, version, version, download)