generated from axetroy/go-cli-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,11 +120,9 @@ SOURCE CODE: | |
|
||
### 安装 | ||
|
||
#### 通过 shell 安装 | ||
1. Shell (Mac/Linux) | ||
|
||
如果你使用的是 Linux/macOS,你可以通过以下命令进行安装 | ||
|
||
```shell | ||
```bash | ||
# 安装最新版本 | ||
curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/master/install.sh | bash | ||
# 或者安装指定版本 | ||
|
@@ -133,28 +131,24 @@ curl -fsSL https://raw.githubusercontent.com/whatchanged-community/whatchanged/m | |
curl -sf https://gobinaries.com/whatchanged-community/[email protected] | sh | ||
``` | ||
|
||
#### 通过 Github release 页面下载安装 | ||
|
||
从[release page](https://github.com/whatchanged-community/whatchanged/releases)页面下载对应平台的可执行文件,并且把它加入到 `$PATH` 环境变量中,并尝试以下命令 | ||
2. PowerShell (Windows): | ||
|
||
```bash | ||
$ whatchanged --help | ||
iwr https://github.com/whatchanged-community/whatchanged/raw/master/install.ps1 -useb | iex | ||
``` | ||
|
||
### 从源码中构建 | ||
3. [Github release page](https://github.com/whatchanged-community/whatchanged/releases) (全平台支持)) | ||
|
||
确保你已安装 `[email protected]` 和 [goreleaser](https://github.com/goreleaser/goreleaser) | ||
下载可执行文件,并且把它加入到`$PATH` 环境变量中,然后尝试以下命令: | ||
|
||
```shell | ||
$ git clone https://github.com/whatchanged-community/whatchanged.git $GOPATH/src/github.com/whatchanged-community/whatchanged | ||
$ cd $GOPATH/src/github.com/whatchanged-community/whatchanged | ||
$ make build | ||
```bash | ||
$ whatchanged --help | ||
``` | ||
|
||
### 测试 | ||
1. 使用 [Golang](https://golang.org) 从源码中构建并安装 (全平台支持) | ||
|
||
```bash | ||
$ make test | ||
go install github.com/whatchanged-community/[email protected] | ||
``` | ||
|
||
### 常见问题 | ||
|