Skip to content

Commit 9be4531

Browse files
feat(account/v2): default generated project name (#3086)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 7962f12 commit 9be4531

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cmd/scw/testdata/test-all-usage-account-project-create-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ USAGE:
66
scw account project create [arg=value ...]
77

88
ARGS:
9-
[name] Name of the Project
10-
[description] Description of the Project
11-
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
9+
[name=<generated>] Name of the Project
10+
[description] Description of the Project
11+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1212

1313
FLAGS:
1414
-h, --help help for create

docs/commands/account.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ scw account project create [arg=value ...]
3030

3131
| Name | | Description |
3232
|------|---|-------------|
33-
| name | | Name of the Project |
33+
| name | Default: `<generated>` | Name of the Project |
3434
| description | | Description of the Project |
3535
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
3636

internal/namespaces/account/v2/account_cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func accountProjectCreate() *core.Command {
6161
Required: false,
6262
Deprecated: false,
6363
Positional: false,
64+
Default: core.RandomValueGenerator("proj"),
6465
},
6566
{
6667
Name: "description",

0 commit comments

Comments
 (0)