Skip to content

Commit

Permalink
update Test_AllUsage goldens
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di committed Jan 27, 2025
1 parent b3b0229 commit 2b8813b
Show file tree
Hide file tree
Showing 46 changed files with 117 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Get the BMC (Baseboard Management Controller) access associated with the given ID.

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

ARGS:
server-id ID of the server to get BMC access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Start BMC (Baseboard Management Controller) access associated with the given ID.
The BMC (Baseboard Management Controller) access is available one hour after the installation of the server.

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

ARGS:
server-id ID of the server to start the BMC access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Stop BMC (Baseboard Management Controller) access associated with the given ID.

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

ARGS:
server-id ID of the server to stop BMC access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Get the server associated with the given ID.

USAGE:
scw dedibox fip get [arg=value ...]
scw dedibox fip get <ip-id ...> [arg=value ...]

ARGS:
ip-id ID of the failover IP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Return specific offer for the given ID.

USAGE:
scw dedibox offer get [arg=value ...]
scw dedibox offer get <offer-id ...> [arg=value ...]

ARGS:
offer-id ID of offer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Return specific OS for the given ID.

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

ARGS:
os-id ID of the OS
Expand Down
4 changes: 2 additions & 2 deletions cmd/scw/testdata/test-all-usage-dedibox-os-list-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
List all available OS that can be install on a baremetal server.

USAGE:
scw dedibox os list [arg=value ...]
scw dedibox os list <server-id ...> [arg=value ...]

ARGS:
[order-by] Order of the OS (created_at_asc | created_at_desc | released_at_asc | released_at_desc)
[type] Type of the OS (unknown_type | server | virtu | panel | desktop | custom | rescue)
[server-id] Filter OS by compatible server ID
server-id Filter OS by compatible server ID
[project-id=<retrieved from config>] Project ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Return raid for the given server ID.

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

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

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

ARGS:
server-id ID of the server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Return rescue information for the given server ID.

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

ARGS:
server-id ID of the server to get rescue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Start in rescue the server associated with the given ID.

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

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

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

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

USAGE:
scw dedibox reverse-ip update [arg=value ...]
scw dedibox reverse-ip update <ip-id ...> [arg=value ...]

ARGS:
ip-id ID of the IP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Add-members dedibox resources.

USAGE:
scw dedibox rpn-v1 add-members [arg=value ...]
scw dedibox rpn-v1 add-members <group-id ...> [arg=value ...]

ARGS:
group-id The rpn v1 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Delete-members dedibox resources.

USAGE:
scw dedibox rpn-v1 delete-members [arg=value ...]
scw dedibox rpn-v1 delete-members <group-id ...> [arg=value ...]

ARGS:
group-id The rpn v1 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Delete dedibox resources.

USAGE:
scw dedibox rpn-v1 delete [arg=value ...]
scw dedibox rpn-v1 delete <group-id ...> [arg=value ...]

ARGS:
group-id Rpn v1 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Get dedibox resources.

USAGE:
scw dedibox rpn-v1 get [arg=value ...]
scw dedibox rpn-v1 get <group-id ...> [arg=value ...]

ARGS:
group-id Rpn v1 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Update dedibox resources.

USAGE:
scw dedibox rpn-v1 update [arg=value ...]
scw dedibox rpn-v1 update <group-id ...> [arg=value ...]

ARGS:
group-id Rpn v1 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Add-members dedibox resources.

USAGE:
scw dedibox rpn-v2 add-members [arg=value ...]
scw dedibox rpn-v2 add-members <group-id ...> [arg=value ...]

ARGS:
group-id RPN V2 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Delete-members dedibox resources.

USAGE:
scw dedibox rpn-v2 delete-members [arg=value ...]
scw dedibox rpn-v2 delete-members <group-id ...> [arg=value ...]

ARGS:
group-id RPN V2 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Delete dedibox resources.

USAGE:
scw dedibox rpn-v2 delete [arg=value ...]
scw dedibox rpn-v2 delete <group-id ...> [arg=value ...]

ARGS:
group-id RPN V2 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Disable-compatibility dedibox resources.

USAGE:
scw dedibox rpn-v2 disable-compatibility [arg=value ...]
scw dedibox rpn-v2 disable-compatibility <group-id ...> [arg=value ...]

ARGS:
group-id RPN V2 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Get dedibox resources.

USAGE:
scw dedibox rpn-v2 get [arg=value ...]
scw dedibox rpn-v2 get <group-id ...> [arg=value ...]

ARGS:
group-id RPN V2 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Update dedibox resources.

USAGE:
scw dedibox rpn-v2 update [arg=value ...]
scw dedibox rpn-v2 update <group-id ...> [arg=value ...]

ARGS:
group-id RPN V2 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Update-vlan-members dedibox resources.

USAGE:
scw dedibox rpn-v2 update-vlan-members [arg=value ...]
scw dedibox rpn-v2 update-vlan-members <group-id ...> [arg=value ...]

ARGS:
group-id RPN V2 group ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Cancels the current server installation associated with the given server ID.

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

ARGS:
server-id Server ID of the server to cancel install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Delete the server associated with the given ID.

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

ARGS:
server-id Server ID to delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Get the server installation status associated with the given server ID.

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

ARGS:
server-id Server ID of the server to install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Get the server default partitioning schema associated with the given server ID and OS ID.

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

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

USAGE:
scw dedibox server get [arg=value ...]
scw dedibox 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
Expand Up @@ -3,7 +3,7 @@
Install an OS on the server associated with the given ID.

USAGE:
scw dedibox server install [arg=value ...]
scw dedibox 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
Expand Up @@ -3,7 +3,7 @@
List disks associated to the given server ID.

USAGE:
scw dedibox server list-disks [arg=value ...]
scw dedibox server list-disks <server-id ...> [arg=value ...]

ARGS:
[order-by] Order of the server disks (created_at_asc | created_at_desc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
List events associated to the given server ID.

USAGE:
scw dedibox server list-events [arg=value ...]
scw dedibox server list-events <server-id ...> [arg=value ...]

ARGS:
[order-by] Order of the server events (created_at_asc | created_at_desc)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List subscribable options associated to the given server ID.

USAGE:
scw dedibox server list-options <server-id ...> [arg=value ...]

ARGS:
server-id Server ID of the subscribable server options
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | all)

FLAGS:
-h, --help help for list-options

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Reboot the server associated with the given ID, use boot param to reboot in rescue.

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

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

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

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

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

ARGS:
server-id Server ID to stop
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Subscribe option for the given server ID.

USAGE:
scw dedibox server subscribe-option <server-id ...> [arg=value ...]

ARGS:
server-id Server ID to subscribe server option
[option-id] Option ID to subscribe
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)

FLAGS:
-h, --help help for subscribe-option

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Subscribe storage option for the given server ID.

USAGE:
scw dedibox server subscribe-storage <server-id ...> [arg=value ...]

ARGS:
server-id Server ID of the storage options to subscribe
options-ids.{index} Option IDs of the storage options to subscribe
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1)

FLAGS:
-h, --help help for subscribe-storage

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Loading

0 comments on commit 2b8813b

Please sign in to comment.