Skip to content

Commit 5ddaad4

Browse files
scaleway-botyfodil
andauthored
feat(webhosting): add control panel support in webhosting (#3484)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent dc6469d commit 5ddaad4

12 files changed

+82
-32
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Control panels represent the kind of administration panel to manage your Web Hosting plan, cPanel or plesk.
4+
5+
USAGE:
6+
scw webhosting control-panels
7+
8+
FLAGS:
9+
-h, --help help for control-panels
10+
11+
GLOBAL FLAGS:
12+
-c, --config string The path to the config file
13+
-D, --debug Enable debug mode
14+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ARGS:
1212
[tags.{index}] List of tags for the Web Hosting plan
1313
[domain] Domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand
1414
[option-ids.{index}] IDs of any selected additional options for the Web Hosting plan
15-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
15+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1616

1717
FLAGS:
1818
-h, --help help for create

cmd/scw/testdata/test-all-usage-webhosting-hosting-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXAMPLES:
1111

1212
ARGS:
1313
hosting-id Hosting ID
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1515

1616
FLAGS:
1717
-h, --help help for delete

cmd/scw/testdata/test-all-usage-webhosting-hosting-get-dns-records-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXAMPLES:
1111

1212
ARGS:
1313
domain Domain associated with the DNS records
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1515

1616
FLAGS:
1717
-h, --help help for get-dns-records

cmd/scw/testdata/test-all-usage-webhosting-hosting-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXAMPLES:
1111

1212
ARGS:
1313
hosting-id Hosting ID
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1515

1616
FLAGS:
1717
-h, --help help for get

cmd/scw/testdata/test-all-usage-webhosting-hosting-list-usage.golden

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ EXAMPLES:
1010
scw webhosting hosting list project-id=a3244331-5d32-4e36-9bf9-b60233e201c7 organization-id=a3244331-5d32-4e36-9bf9-b60233e201c7
1111

1212
ARGS:
13-
[order-by] Sort order for Web Hosting plans in the response (created_at_asc | created_at_desc)
14-
[tags.{index}] Tags to filter for, only Web Hosting plans with matching tags will be returned
15-
[statuses.{index}] Statuses to filter for, only Web Hosting plans with matching statuses will be returned (unknown_status | delivering | ready | deleting | error | locked | migrating)
16-
[domain] Domain to filter for, only Web Hosting plans associated with this domain will be returned
17-
[project-id] Project ID to filter for, only Web Hosting plans from this Project will be returned
18-
[organization-id] Organization ID to filter for, only Web Hosting plans from this Organization will be returned
19-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
13+
[order-by] Sort order for Web Hosting plans in the response (created_at_asc | created_at_desc)
14+
[tags.{index}] Tags to filter for, only Web Hosting plans with matching tags will be returned
15+
[statuses.{index}] Statuses to filter for, only Web Hosting plans with matching statuses will be returned (unknown_status | delivering | ready | deleting | error | locked | migrating)
16+
[domain] Domain to filter for, only Web Hosting plans associated with this domain will be returned
17+
[project-id] Project ID to filter for, only Web Hosting plans from this Project will be returned
18+
[control-panels.{index}] Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned
19+
[organization-id] Organization ID to filter for, only Web Hosting plans from this Organization will be returned
20+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | all)
2021

2122
FLAGS:
2223
-h, --help help for list

cmd/scw/testdata/test-all-usage-webhosting-hosting-restore-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXAMPLES:
1111

1212
ARGS:
1313
hosting-id Hosting ID
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1515

1616
FLAGS:
1717
-h, --help help for restore

cmd/scw/testdata/test-all-usage-webhosting-hosting-update-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARGS:
2121
[tags.{index}] New tags for the Web Hosting plan
2222
[option-ids.{index}] IDs of the new options for the Web Hosting plan
2323
[offer-id] ID of the new offer for the Web Hosting plan
24-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
24+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2525

2626
FLAGS:
2727
-h, --help help for update

cmd/scw/testdata/test-all-usage-webhosting-offer-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ARGS:
2020
[without-options] Defines whether the response should consist of offers only, without options
2121
[only-options] Defines whether the response should consist of options only, without offers
2222
[hosting-id] ID of a Web Hosting plan, to check compatibility with returned offers (in case of wanting to update the plan)
23-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
23+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2424

2525
FLAGS:
2626
-h, --help help for list

cmd/scw/testdata/test-all-usage-webhosting-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ USAGE:
66
scw webhosting <command>
77

88
AVAILABLE COMMANDS:
9-
hosting Hosting management commands
10-
offer Offer management commands
9+
control-panels Control Panels
10+
hosting Hosting management commands
11+
offer Offer management commands
1112

1213
FLAGS:
1314
-h, --help help for webhosting

0 commit comments

Comments
 (0)