Skip to content

Commit

Permalink
Merge pull request #49 from packethost/fixes
Browse files Browse the repository at this point in the history
fixes #48 fixes #47
  • Loading branch information
jasmingacic authored Apr 14, 2020
2 parents 7e99da5 + a96405c commit 66eff26
Show file tree
Hide file tree
Showing 68 changed files with 67 additions and 166 deletions.
2 changes: 1 addition & 1 deletion cmd/capacity.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

// capacityCmd represents the capacity command
var capacityCmd = &cobra.Command{
Use: "capactiy",
Use: "capacity",
Short: "Capacities operations",
Long: `Capacities operations: get, check`,
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Cli struct {

// VERSION build
var (
Build string = "DefaultBuild"
Version string = "DefaultVersion"
Build string = "0.0.6"
Version string = "7e99da5"
)

// NewCli struct
Expand Down
4 changes: 2 additions & 2 deletions docs/packet.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Command line interface for Packet Host
### SEE ALSO

* [packet 2fa](packet_2fa.md) - Two Factor Authentication operations
* [packet capactiy](packet_capactiy.md) - Capacities operations
* [packet capacity](packet_capacity.md) - Capacities operations
* [packet device](packet_device.md) - Device operations
* [packet event](packet_event.md) - Events operations
* [packet facilities](packet_facilities.md) - Facility operations
Expand All @@ -33,4 +33,4 @@ Command line interface for Packet Host
* [packet volume](packet_volume.md) - Volume operations
* [packet vpn](packet_vpn.md) - VPN service operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_2fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ Two Factor Authentication operations: enable, disable, receive
* [packet 2fa enable](packet_2fa_enable.md) - Enables two factor authentication
* [packet 2fa receive](packet_2fa_receive.md) - Receive two factor authentication token

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_2fa_disable.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ packet 2fa disable [flags]

* [packet 2fa](packet_2fa.md) - Two Factor Authentication operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_2fa_enable.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ packet 2fa enable [flags]

* [packet 2fa](packet_2fa.md) - Two Factor Authentication operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_2fa_receive.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ packet 2fa receive [flags]

* [packet 2fa](packet_2fa.md) - Two Factor Authentication operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
27 changes: 0 additions & 27 deletions docs/packet_capactiy.md

This file was deleted.

38 changes: 0 additions & 38 deletions docs/packet_capactiy_check.md

This file was deleted.

34 changes: 0 additions & 34 deletions docs/packet_capactiy_get.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/packet_device.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Device operations: create, delete, update, start/stop, reboot and get.
* [packet device stop](packet_device_stop.md) - Stops a device
* [packet device update](packet_device_update.md) - Updates a device

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_device_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ packet device create [flags]

* [packet device](packet_device.md) - Device operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_device_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ packet device delete [flags]

* [packet device](packet_device.md) - Device operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_device_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ packet device get [flags]

* [packet device](packet_device.md) - Device operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_device_reboot.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ packet device reboot [flags]

* [packet device](packet_device.md) - Device operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_device_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ packet device start [flags]

* [packet device](packet_device.md) - Device operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_device_stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ packet device stop [flags]

* [packet device](packet_device.md) - Device operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_device_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ packet device update [flags]

* [packet device](packet_device.md) - Device operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Events operations: get
* [packet](packet.md) - Command line interface for Packet Host
* [packet event get](packet_event_get.md) - Retrieves one or more events for organizations, projects, or devices.

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_event_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ packet event get [flags]

* [packet event](packet_event.md) - Events operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_facilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Facility operations: get
* [packet](packet.md) - Command line interface for Packet Host
* [packet facilities get](packet_facilities_get.md) - Retrieves a list of available facilities.

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_facilities_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ packet facilities get [flags]

* [packet facilities](packet_facilities.md) - Facility operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_hardware-reservation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Hardware reservation operations: get, move
* [packet hardware-reservation get](packet_hardware-reservation_get.md) - Retrieves all hardware reservations of a project or a single hardware reservation
* [packet hardware-reservation move](packet_hardware-reservation_move.md) - Move hardware reservation to another project

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_hardware-reservation_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ packet hardware-reservation get [flags]

* [packet hardware-reservation](packet_hardware-reservation.md) - Hardware reservation operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_hardware-reservation_move.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ packet hardware-reservation move [flags]

* [packet hardware-reservation](packet_hardware-reservation.md) - Hardware reservation operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ IP address, reservations and assignment operations: assign, unassign, remove, av
* [packet ip request](packet_ip_request.md) - Request an IP block
* [packet ip unassign](packet_ip_unassign.md) - Unassigns an IP address.

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ip_assign.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ packet ip assign [flags]

* [packet ip](packet_ip.md) - IP operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ip_available.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ packet ip available [flags]

* [packet ip](packet_ip.md) - IP operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ip_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ packet ip get [flags]

* [packet ip](packet_ip.md) - IP operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ip_remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ packet ip remove [flags]

* [packet ip](packet_ip.md) - IP operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ip_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ packet ip request [flags]

* [packet ip](packet_ip.md) - IP operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ip_unassign.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ packet ip unassign [flags]

* [packet ip](packet_ip.md) - IP operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_operating-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Operating system operations: get
* [packet](packet.md) - Command line interface for Packet Host
* [packet operating-systems get](packet_operating-systems_get.md) - Retrieves a list of available operating systems.

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_operating-systems_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ packet operating-systems get [flags]

* [packet operating-systems](packet_operating-systems.md) - Operating system operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Organization operations: create, update, delete and get
* [packet organization get](packet_organization_get.md) - Retrieves an organization or list of organizations
* [packet organization update](packet_organization_update.md) - Updates an organization

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_organization_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ packet organization create [flags]

* [packet organization](packet_organization.md) - Organization operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_organization_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ packet organization delete [flags]

* [packet organization](packet_organization.md) - Organization operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_organization_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ packet organization get [flags]
* [packet organization](packet_organization.md) - Organization operations
* [packet organization get payment-methods](packet_organization_get_payment-methods.md) - Retrieves a list of payment methods for the organization

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_organization_get_payment-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ packet organization get payment-methods [flags]

* [packet organization get](packet_organization_get.md) - Retrieves an organization or list of organizations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_organization_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ packet organization update [flags]

* [packet organization](packet_organization.md) - Organization operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Plan operations: get
* [packet](packet.md) - Command line interface for Packet Host
* [packet plan get](packet_plan_get.md) - Retrieves a list of all available plans.

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_plan_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ packet plan get [flags]

* [packet plan](packet_plan.md) - Plan operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Project operations: create, delete, update and get
* [packet project get](packet_project_get.md) - Retrieves all available projects or a single project
* [packet project update](packet_project_update.md) - Updates a project

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_project_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ packet project create [flags]

* [packet project](packet_project.md) - Project operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_project_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ packet project delete [flags]

* [packet project](packet_project.md) - Project operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_project_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ packet project get [flags]

* [packet project](packet_project.md) - Project operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_project_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ packet project update [flags]

* [packet project](packet_project.md) - Project operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ssh-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ SSH key operations: create, delete, update and get
* [packet ssh-key get](packet_ssh-key_get.md) - Retrieves a list of available SSH keys or a single SSH key
* [packet ssh-key update](packet_ssh-key_update.md) - Updates a project

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
2 changes: 1 addition & 1 deletion docs/packet_ssh-key_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ packet ssh-key create [flags]

* [packet ssh-key](packet_ssh-key.md) - SSH key operations

###### Auto generated by spf13/cobra on 18-Dec-2019
###### Auto generated by spf13/cobra on 14-Apr-2020
Loading

0 comments on commit 66eff26

Please sign in to comment.