Skip to content

Commit

Permalink
add a alias for the cli to prevent conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Jan 17, 2018
1 parent f39bc8b commit e20eeea
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ Alicloud log service command line console, support almost all operations as web.
3. aliyun [--help | --version]
```

#### alias
there's also a alias `aliyunlog` for the CLI in case the command `aliyun` conflicts with others.

```shell
1. aliyunlog log <subcommand> [parameters | global options]
2. aliyunlog configure <access_id> <access-key> <endpoint>
3. aliyunlog [--help | --version]
```


### CLI Troubleshooting

Expand Down
11 changes: 11 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ SLS命令行控制台, 支持几乎所有操作, 日志查询支持完整性检
3. aliyun [--help | --version]
```


#### 别名
日志服务的CLI也有一个别名`aliyunlog`, 如果`aliyun`这个命令冲突了, 可以尝试使用`aliyunlog`:

```shell
1. aliyunlog log <subcommand> [parameters | global options]
2. aliyunlog configure <access_id> <access-key> <endpoint>
3. aliyunlog [--help | --version]
```


### CLI错误诊断

CLI默认把执行过程中的警告和错误存储在`~/aliyunlogcli.log`中, 也可以配置~/.aliyunlogcli中`__loggging__`来调整错误存储位置和格式:
Expand Down
2 changes: 1 addition & 1 deletion aliyunlogcli/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

__version__ = '0.1.4'
__version__ = '0.1.5'
from aliyun.log.version import USER_AGENT as SDK_USER_AGENT
USER_AGENT = 'log-cli-v-' + __version__ + ", " + SDK_USER_AGENT
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
entry_points={
'console_scripts': [
'aliyun=aliyunlogcli.cli:main',
'aliyunlog=aliyunlogcli.cli:main'
],
}
)

0 comments on commit e20eeea

Please sign in to comment.