Skip to content

feat(core): add support for multi positional args #979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get SSH key details.

USAGE:
scw account ssh-key get <ssh-key-id> [arg=value ...]
scw account ssh-key get <ssh-key-id ...> [arg=value ...]

ARGS:
ssh-key-id The ID of the SSH key
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Remove a SSH key from your Scaleway account.

USAGE:
scw account ssh-key remove <ssh-key-id> [arg=value ...]
scw account ssh-key remove <ssh-key-id ...> [arg=value ...]

EXAMPLES:
Remove a given SSH key
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Update an SSH key.

USAGE:
scw account ssh-key update <ssh-key-id> [arg=value ...]
scw account ssh-key update <ssh-key-id ...> [arg=value ...]

ARGS:
ssh-key-id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the IP failover associated with the given IP.

USAGE:
scw baremetal ip delete <ip-failover-id> [arg=value ...]
scw baremetal ip delete <ip-failover-id ...> [arg=value ...]

ARGS:
ip-failover-id ID of the IP failover to delete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get the IP failover associated with the given ID.

USAGE:
scw baremetal ip get <ip-failover-id> [arg=value ...]
scw baremetal ip get <ip-failover-id ...> [arg=value ...]

ARGS:
ip-failover-id ID of the IP failover
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Update the IP failover associated with the given IP.

USAGE:
scw baremetal ip update <ip-failover-id> [arg=value ...]
scw baremetal ip update <ip-failover-id ...> [arg=value ...]

ARGS:
ip-failover-id ID of the IP failover to update
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Return specific OS for the given ID.

USAGE:
scw baremetal os get <os-id> [arg=value ...]
scw baremetal os get <os-id ...> [arg=value ...]

ARGS:
os-id ID of the researched OS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the server associated with the given ID.

USAGE:
scw baremetal server delete <server-id> [arg=value ...]
scw baremetal server delete <server-id ...> [arg=value ...]

ARGS:
server-id ID of the server to delete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get the server associated with the given ID.

USAGE:
scw baremetal server get <server-id> [arg=value ...]
scw baremetal server get <server-id ...> [arg=value ...]

ARGS:
server-id ID of the server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Install an OS on the server associated with the given ID.

USAGE:
scw baremetal server install <server-id> [arg=value ...]
scw baremetal server install <server-id ...> [arg=value ...]

ARGS:
server-id Server ID to install
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Reboot the server associated with the given ID, use boot param to reboot in rescue.

USAGE:
scw baremetal server reboot <server-id> [arg=value ...]
scw baremetal server reboot <server-id ...> [arg=value ...]

ARGS:
server-id ID of the server to reboot
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Start the server associated with the given ID.

USAGE:
scw baremetal server start <server-id> [arg=value ...]
scw baremetal server start <server-id ...> [arg=value ...]

ARGS:
server-id ID of the server to start
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Stop the server associated with the given ID.

USAGE:
scw baremetal server stop <server-id> [arg=value ...]
scw baremetal server stop <server-id ...> [arg=value ...]

ARGS:
server-id ID of the server to stop
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Update the server associated with the given ID.

USAGE:
scw baremetal server update <server-id> [arg=value ...]
scw baremetal server update <server-id ...> [arg=value ...]

ARGS:
server-id ID of the server to update
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the image with the given ID.

USAGE:
scw instance image delete <image-id> [arg=value ...]
scw instance image delete <image-id ...> [arg=value ...]

EXAMPLES:
Delete an image in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get details of an image with the given ID.

USAGE:
scw instance image get <image-id> [arg=value ...]
scw instance image get <image-id ...> [arg=value ...]

EXAMPLES:
Get an image in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the IP with the given ID.

USAGE:
scw instance ip delete <ip> [arg=value ...]
scw instance ip delete <ip ...> [arg=value ...]

EXAMPLES:
Delete an IP in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get details of an IP with the given ID or address.

USAGE:
scw instance ip get <ip> [arg=value ...]
scw instance ip get <ip ...> [arg=value ...]

EXAMPLES:
Get an IP in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Update IP.

USAGE:
scw instance ip update <ip> [arg=value ...]
scw instance ip update <ip ...> [arg=value ...]

EXAMPLES:
Update an IP in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the given placement group.

USAGE:
scw instance placement-group delete <placement-group-id> [arg=value ...]
scw instance placement-group delete <placement-group-id ...> [arg=value ...]

EXAMPLES:
Delete a placement group in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get the given placement group.

USAGE:
scw instance placement-group get <placement-group-id> [arg=value ...]
scw instance placement-group get <placement-group-id ...> [arg=value ...]

EXAMPLES:
Get a placement group with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Update one or more parameter of the given placement group.

USAGE:
scw instance placement-group update <placement-group-id> [arg=value ...]
scw instance placement-group update <placement-group-id ...> [arg=value ...]

EXAMPLES:
Update the name of a placement group
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete security group.

USAGE:
scw instance security-group delete <security-group-id> [arg=value ...]
scw instance security-group delete <security-group-id ...> [arg=value ...]

EXAMPLES:
Delete a security group with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get the details of a Security Group with the given ID.

USAGE:
scw instance security-group get <security-group-id> [arg=value ...]
scw instance security-group get <security-group-id ...> [arg=value ...]

EXAMPLES:
Get a security group with the given ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This command:
Once your image is ready you will be able to create a new server based on this image.

USAGE:
scw instance server backup <server-id> [arg=value ...]
scw instance server backup <server-id ...> [arg=value ...]

EXAMPLES:
Create a new image based on a server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete a server with the given ID.

USAGE:
scw instance server delete <server-id> [arg=value ...]
scw instance server delete <server-id ...> [arg=value ...]

EXAMPLES:
Delete a server in the default zone with a given id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get the details of a specified Server.

USAGE:
scw instance server get <server-id> [arg=value ...]
scw instance server get <server-id ...> [arg=value ...]

EXAMPLES:
Get a server with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Reboot server

USAGE:
scw instance server reboot <server-id> [arg=value ...]
scw instance server reboot <server-id ...> [arg=value ...]

EXAMPLES:
Reboot a server in the default zone with a given id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Connect to distant server via the SSH protocol.

USAGE:
scw instance server ssh <server-id> [arg=value ...]
scw instance server ssh <server-id ...> [arg=value ...]

ARGS:
server-id Server ID to SSH into
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Put server in standby mode

USAGE:
scw instance server standby <server-id> [arg=value ...]
scw instance server standby <server-id ...> [arg=value ...]

EXAMPLES:
Put in standby a server in the default zone with a given id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Power on server

USAGE:
scw instance server start <server-id> [arg=value ...]
scw instance server start <server-id ...> [arg=value ...]

EXAMPLES:
Start a server in the default zone with a given id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Power off server

USAGE:
scw instance server stop <server-id> [arg=value ...]
scw instance server stop <server-id ...> [arg=value ...]

EXAMPLES:
Stop a server in the default zone with a given id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Update server.

USAGE:
scw instance server update <server-id> [arg=value ...]
scw instance server update <server-id ...> [arg=value ...]

EXAMPLES:
Update the name of a given server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Wait for server to reach a stable state. This is similar to using --wait flag on other action commands, but without requiring a new action on the server.

USAGE:
scw instance server wait <server-id> [arg=value ...]
scw instance server wait <server-id ...> [arg=value ...]

EXAMPLES:
Wait for a server to reach a stable state
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the snapshot with the given ID.

USAGE:
scw instance snapshot delete <snapshot-id> [arg=value ...]
scw instance snapshot delete <snapshot-id ...> [arg=value ...]

EXAMPLES:
Delete a snapshot in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get details of a snapshot with the given ID.

USAGE:
scw instance snapshot get <snapshot-id> [arg=value ...]
scw instance snapshot get <snapshot-id ...> [arg=value ...]

EXAMPLES:
Get a snapshot in the default zone with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the given key from a server user data.

USAGE:
scw instance user-data delete <server-id> [arg=value ...]
scw instance user-data delete <server-id ...> [arg=value ...]

ARGS:
server-id UUID of the server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get the content of a user data with the given key on a server.

USAGE:
scw instance user-data get <server-id> [arg=value ...]
scw instance user-data get <server-id ...> [arg=value ...]

ARGS:
server-id UUID of the server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
List all user data keys registered on a given server.

USAGE:
scw instance user-data list <server-id> [arg=value ...]
scw instance user-data list <server-id ...> [arg=value ...]

ARGS:
server-id UUID of the server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Add or update a user data with the given key on a server.

USAGE:
scw instance user-data set <server-id> [arg=value ...]
scw instance user-data set <server-id ...> [arg=value ...]

ARGS:
server-id UUID of the server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Delete the volume with the given ID.

USAGE:
scw instance volume delete <volume-id> [arg=value ...]
scw instance volume delete <volume-id ...> [arg=value ...]

EXAMPLES:
Delete a volume with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Get details of a volume with the given ID.

USAGE:
scw instance volume get <volume-id> [arg=value ...]
scw instance volume get <volume-id ...> [arg=value ...]

EXAMPLES:
Get a volume with the given ID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This method allows to delete a specific cluster and all its associated pools and nodes. Note that this method will not delete any Load Balancers or Block Volumes that are associated with the cluster.

USAGE:
scw k8s cluster delete <cluster-id> [arg=value ...]
scw k8s cluster delete <cluster-id ...> [arg=value ...]

EXAMPLES:
Delete a given cluster
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This method allows to get details about a specific Kubernetes cluster.

USAGE:
scw k8s cluster get <cluster-id> [arg=value ...]
scw k8s cluster get <cluster-id ...> [arg=value ...]

EXAMPLES:
Get a given cluster
Expand Down
Loading