Skip to content

Commit

Permalink
add tag option, bump to v1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesClonk committed Oct 13, 2016
1 parent 17e4e49 commit 8567562
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ $ export VULTR_API_KEY=87dFbC91rJjkL/18zJEQxS
* Run it
```sh
$ vultr version
Client version: v1.9
Client version: v1.10
Vultr API endpoint: https://api.vultr.com/
Vultr API version: v1
OS/Arch (client): linux/amd64
Go version: go1.5.3
Go version: go1.6.3
```

---
Expand All @@ -46,11 +46,11 @@ $ export VULTR_API_KEY=89dFbb91rGjkL/12zJEQxS
* Run it
```sh
$ vultr version
Client version: v1.9
Client version: v1.10
Vultr API endpoint: https://api.vultr.com/
Vultr API version: v1
OS/Arch (client): linux/amd64
Go version: go1.5.3
Go version: go1.6.3
```

---
Expand Down Expand Up @@ -169,7 +169,7 @@ Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-37-generic x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Thu Oct 16 21:49:35 2014 from 10.0.2.2
root@vultr:~#
root@vultr:~#
```

Expand Down
4 changes: 3 additions & 1 deletion cmd/commands_servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func serversCreate(cmd *cli.Cmd) {
userDataFile := cmd.StringOpt("user-data", "", "Path to file with user-data")
snapshot := cmd.StringOpt("snapshot", "", "SNAPSHOTID (see <snapshots>) to restore for the initial installation")
sshkey := cmd.StringOpt("k sshkey", "", "SSHKEYID (see <sshkeys>) of SSH key to apply to this server on install")
hostname := cmd.StringOpt("hostname", "", "Hostname for this server.")
hostname := cmd.StringOpt("hostname", "", "Hostname to assign to this server")
tag := cmd.StringOpt("tag", "", "Tag to assign to this server")
ipv6 := cmd.BoolOpt("ipv6", false, "Assign an IPv6 subnet to this virtual machine (where available)")
privateNetworking := cmd.BoolOpt("private-networking", false, "Add private networking support for this virtual machine")
autoBackups := cmd.BoolOpt("autobackups", false, "Enable automatic backups for this virtual machine")
Expand All @@ -42,6 +43,7 @@ func serversCreate(cmd *cli.Cmd) {
PrivateNetworking: *privateNetworking,
AutoBackups: *autoBackups,
Hostname: *hostname,
Tag: *tag,
DontNotifyOnActivate: !*notifyActivate,
}
if *userDataFile != "" {
Expand Down
2 changes: 1 addition & 1 deletion lib/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

const (
// Version of this libary
Version = "v1.9"
Version = "v1.10"

// APIVersion of Vultr
APIVersion = "v1"
Expand Down

0 comments on commit 8567562

Please sign in to comment.