Skip to content

Commit dc018b6

Browse files
committed
ucloud 0.1.21
1 parent 302b8fd commit dc018b6

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export VERSION=0.1.20
1+
export VERSION=0.1.21
22

33
.PHONY : install
44
install:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ tar zxf ucloud-cli-macosx-0.1.20-amd64.tgz -C /usr/local/bin/
6161
**Building from source**
6262

6363
Download the source code of ucloud cli from [releases page](https://github.com/ucloud/ucloud-cli/releases). You can also download it by running ```git clone https://github.com/ucloud/ucloud-cli.git```
64-
Ensure you have git installed, because go will download packages using git. Go to the directory of the source code, and then compile the source code by running "go build -o ucloud.exe"
64+
Ensure you have git installed, because go will download packages using git. Go to the directory of the source code, and then compile the source code by running "go build -mod=vendor -o ucloud.exe"
6565
After that add ucloud.exe to your environment variable PATH. You could follow [this document](https://www.java.com/en/download/help/path.xml) if you don't know how to do.
6666
Open CMD Terminal and run ```ucloud --version ``` to test installation.
6767

base/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const DefaultBaseURL = "https://api.ucloud.cn/"
3333
const DefaultProfile = "default"
3434

3535
//Version 版本号
36-
const Version = "0.1.20"
36+
const Version = "0.1.21"
3737

3838
//ConfigIns 配置实例, 程序加载时生成
3939
var ConfigIns = &AggConfig{

cmd/ext.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ func NewCmdExtUHostSwitchEIP() *cobra.Command {
5656
var unbind, release bool
5757

5858
cmd := &cobra.Command{
59-
Use: "switch-eip",
60-
Short: "Switch EIP for UHost instances",
61-
Long: "Switch EIP for UHost instances",
59+
Use: "switch-eip",
60+
Short: "Switch EIP for UHost instances",
61+
Long: "Switch EIP for UHost instances",
62+
Example: "ucloud ext uhost switch-eip --uhost-id uhost-1n1sxx2,uhost-li4jxx1 --create-eip-bandwidth-mb 2",
6263
Run: func(c *cobra.Command, args []string) {
6364
project = base.PickResourceID(project)
6465
eipAddrMap := make(map[string]bool)

0 commit comments

Comments
 (0)