Skip to content

Commit abf5e81

Browse files
authored
Merge branch 'master' into vpc
2 parents a0f837d + e70bc4c commit abf5e81

36 files changed

+259
-144
lines changed

.appveyor.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ clone_folder: C:\Users\appveyor\go\src\github.com\aliyun\aliyun-cli
77
# scripts that run after cloning repository
88
install:
99
# by default, all script lines are interpreted as batch
10-
- cmd: git clone -q --branch=master https://github.com/aliyun/aliyun-openapi-meta.git C:\Users\appveyor\go\src\github.com\aliyun\aliyun-openapi-meta
10+
- cmd: git submodule update --init --recursive
1111
- cmd: set path=%path%;C:\Users\appveyor\go\bin
12-
- cmd: set VERSION=3.0.81
12+
- cmd: set VERSION=3.0.85
1313
- cmd: go get -u github.com/shuLhan/go-bindata/...
14-
- cmd: go-bindata -o resource/metas.go -pkg resource -prefix ../aliyun-openapi-meta ../aliyun-openapi-meta/...
14+
- cmd: go-bindata -o resource/metas.go -pkg resource ./aliyun-openapi-meta/...
1515
- cmd: go build -ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=%VERSION%'" -o C:\Users\appveyor\go\bin\aliyun.exe main/main.go
1616

1717
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
@@ -28,4 +28,3 @@ test_script:
2828
$client.DownloadFile('https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe', 'C:/go/bin/jq.exe')
2929
3030
if (-not $env:ACCESS_KEY_ID.length -eq 0 -and -not $env:ACCESS_KEY_SECRET.length -eq 0){./integration/ecs_test.PS1}
31-

.github/workflows/go.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010

1111
build:
1212
runs-on: ubuntu-latest
13+
env:
14+
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
15+
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}
16+
REGION_ID: ${{ secrets.REGION_ID }}
1317
steps:
1418
- uses: actions/checkout@v2
1519
# fetch submodule for aliyun-openapi-meta

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ before_install:
1313
- sudo apt-get install -y jq
1414

1515
install:
16+
- git submodule update --init --recursive
1617
- make build
1718
- sudo cp out/aliyun /usr/local/bin
1819

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
### Master
44

5+
### 3.0.85
6+
7+
- update: meta data
8+
9+
### 3.0.84
10+
11+
- update: meta data
12+
13+
### 3.0.83
14+
15+
- update: meta data
16+
17+
### 3.0.82
18+
19+
- update: meta data
20+
521
### 3.0.81
622

723
- update: meta data

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export VERSION=3.0.81
1+
export VERSION=3.0.85
22
export RELEASE_PATH="releases/aliyun-cli-${VERSION}"
33

44
all: build

README-CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ CLI 版本更改说明请参考 [CHANGELOG](./CHANGELOG.md)
4343

4444
阿里云CLI工具下载、解压后即可使用,支持Mac, Linux, Windows平台(x64版本)。您可以将解压的`aliyun`可执行文件移至`/usr/local/bin`目录下,或添加到`$PATH`中。
4545

46-
下载链接如下 (3.0.81):
46+
下载链接如下 (3.0.85):
4747

48-
- [Mac](https://aliyuncli.alicdn.com/aliyun-cli-macosx-3.0.81-amd64.tgz)
49-
- [Linux](https://aliyuncli.alicdn.com/aliyun-cli-linux-3.0.81-amd64.tgz)
50-
- [Windows (64 bit)](https://aliyuncli.alicdn.com/aliyun-cli-windows-3.0.81-amd64.zip)
48+
- [Mac](https://aliyuncli.alicdn.com/aliyun-cli-macosx-3.0.85-amd64.tgz)
49+
- [Linux](https://aliyuncli.alicdn.com/aliyun-cli-linux-3.0.85-amd64.tgz)
50+
- [Windows (64 bit)](https://aliyuncli.alicdn.com/aliyun-cli-windows-3.0.85-amd64.zip)
5151

5252
- **使用brew**
5353

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ The release notes for the CLI can be found in the [CHANGELOG](./CHANGELOG.md)
4141

4242
Download the installer, then extract the installer. You can move the extracted `aliyun` executable file to the `/usr/local/bin` directory or add it to the `$PATH`.
4343

44-
Download link: (3.0.81)
44+
Download link: (3.0.85)
4545

46-
- [Mac](https://aliyuncli.alicdn.com/aliyun-cli-macosx-3.0.81-amd64.tgz)
47-
- [Linux](https://aliyuncli.alicdn.com/aliyun-cli-linux-3.0.81-amd64.tgz)
48-
- [Windows (64 bit)](https://aliyuncli.alicdn.com/aliyun-cli-windows-3.0.81-amd64.zip)
46+
- [Mac](https://aliyuncli.alicdn.com/aliyun-cli-macosx-3.0.85-amd64.tgz)
47+
- [Linux](https://aliyuncli.alicdn.com/aliyun-cli-linux-3.0.85-amd64.tgz)
48+
- [Windows (64 bit)](https://aliyuncli.alicdn.com/aliyun-cli-windows-3.0.85-amd64.zip)
4949

5050
- **Use brew**
5151
If you have installed `brew` in your computer, you can use it to install Alibaba Cloud CLI as following:

aliyun-openapi-meta

Submodule aliyun-openapi-meta updated 188 files

cli/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,14 @@ func (c *Command) executeInner(ctx *Context, args []string) error {
230230
}
231231

232232
func (c *Command) processError(ctx *Context, err error) {
233-
Errorf(ctx.Writer(), "ERROR: %s\n", err.Error())
233+
Errorf(ctx.Stderr(), "ERROR: %s\n", err.Error())
234234
if e, ok := err.(SuggestibleError); ok {
235235
PrintSuggestions(ctx, i18n.GetLanguage(), e.GetSuggestions())
236236
Exit(2)
237237
return
238238
}
239239
if e, ok := err.(ErrorWithTip); ok {
240-
Noticef(ctx.Writer(), "\n%s\n", e.GetTip(i18n.GetLanguage()))
240+
Noticef(ctx.Stderr(), "\n%s\n", e.GetTip(i18n.GetLanguage()))
241241
Exit(3)
242242
return
243243
}

cli/command_help.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ func (c *Command) PrintFlags(ctx *Context) {
7777
}
7878

7979
func (c *Command) PrintFailed(ctx *Context, err error, suggestion string) {
80-
Errorf(ctx.Writer(), "ERROR: %v\n", err)
81-
Printf(ctx.Writer(), "%s\n", suggestion)
80+
Errorf(ctx.Stderr(), "ERROR: %v\n", err)
81+
Printf(ctx.Stderr(), "%s\n", suggestion)
8282
}
8383

8484
func (c *Command) PrintTail(ctx *Context) {

0 commit comments

Comments
 (0)