Skip to content
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

feat(webhosting): add language field at public hosting creation #3628

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Expand Up @@ -12,6 +12,7 @@ ARGS:
[tags.{index}] List of tags for the Web Hosting plan
[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
[option-ids.{index}] IDs of any selected additional options for the Web Hosting plan
[language] Default language for the control panel interface (unknown_language_code | en_US | fr_FR | de_DE)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
Expand Down
1 change: 1 addition & 0 deletions docs/commands/webhosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ scw webhosting hosting create [arg=value ...]
| tags.{index} | | List of tags for the Web Hosting plan |
| 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 |
| option-ids.{index} | | IDs of any selected additional options for the Web Hosting plan |
| language | One of: `unknown_language_code`, `en_US`, `fr_FR`, `de_DE` | Default language for the control panel interface |
| 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 |


Expand Down
8 changes: 8 additions & 0 deletions internal/namespaces/webhosting/v1alpha1/webhosting_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ func webhostingHostingCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "language",
Short: `Default language for the control panel interface`,
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown_language_code", "en_US", "fr_FR", "de_DE"},
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
Expand Down
Loading