Skip to content

Commit b3fcf9f

Browse files
authored
feat(webhosting): add language field at public hosting creation (#3628)
1 parent 0da87db commit b3fcf9f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +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+
[language] Default language for the control panel interface (unknown_language_code | en_US | fr_FR | de_DE)
1516
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1617

1718
FLAGS:

docs/commands/webhosting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ scw webhosting hosting create [arg=value ...]
6666
| tags.{index} | | List of tags for the Web Hosting plan |
6767
| 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 |
6868
| option-ids.{index} | | IDs of any selected additional options for the Web Hosting plan |
69+
| language | One of: `unknown_language_code`, `en_US`, `fr_FR`, `de_DE` | Default language for the control panel interface |
6970
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams` | Region to target. If none is passed will use default region from the config |
7071

7172

internal/namespaces/webhosting/v1alpha1/webhosting_cli.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ func webhostingHostingCreate() *core.Command {
115115
Deprecated: false,
116116
Positional: false,
117117
},
118+
{
119+
Name: "language",
120+
Short: `Default language for the control panel interface`,
121+
Required: false,
122+
Deprecated: false,
123+
Positional: false,
124+
EnumValues: []string{"unknown_language_code", "en_US", "fr_FR", "de_DE"},
125+
},
118126
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
119127
},
120128
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)