diff --git a/cmd/scw/testdata/test-all-usage-secret-version-create-usage.golden b/cmd/scw/testdata/test-all-usage-secret-version-create-usage.golden index c3a21c7008..a415a15559 100644 --- a/cmd/scw/testdata/test-all-usage-secret-version-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-secret-version-create-usage.golden @@ -6,17 +6,12 @@ USAGE: scw secret version create [arg=value ...] ARGS: - secret-id ID of the secret - data Content of the secret version. Base64 is handled by the SDK (Support file loading with @/path/to/file) - [description] Description of the version - [disable-previous] Disable the previous secret version - [password-generation.length] Length of the password to generate (between 1 and 1024) - [password-generation.no-lowercase-letters] Do not include lower case letters by default in the alphabet - [password-generation.no-uppercase-letters] Do not include upper case letters by default in the alphabet - [password-generation.no-digits] Do not include digits by default in the alphabet - [password-generation.additional-chars] Additional ascii characters to be included in the alphabet - [data-crc32] The CRC32 checksum of the data as a base-10 integer - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) + secret-id ID of the secret + data Content of the secret version. Base64 is handled by the SDK (Support file loading with @/path/to/file) + [description] Description of the version + [disable-previous] Disable the previous secret version + [data-crc32] (Optional.) The CRC32 checksum of the data as a base-10 integer + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) FLAGS: -h, --help help for create diff --git a/docs/commands/secret.md b/docs/commands/secret.md index 8816a89ff4..ac82affba2 100644 --- a/docs/commands/secret.md +++ b/docs/commands/secret.md @@ -200,12 +200,7 @@ scw secret version create [arg=value ...] | data | Required | Content of the secret version. Base64 is handled by the SDK | | description | | Description of the version | | disable-previous | | Disable the previous secret version | -| password-generation.length | | Length of the password to generate (between 1 and 1024) | -| password-generation.no-lowercase-letters | | Do not include lower case letters by default in the alphabet | -| password-generation.no-uppercase-letters | | Do not include upper case letters by default in the alphabet | -| password-generation.no-digits | | Do not include digits by default in the alphabet | -| password-generation.additional-chars | | Additional ascii characters to be included in the alphabet | -| data-crc32 | | The CRC32 checksum of the data as a base-10 integer | +| data-crc32 | | (Optional.) The CRC32 checksum of the data as a base-10 integer | | region | Default: `fr-par`
One of: `fr-par` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/secret/v1alpha1/secret_cli.go b/internal/namespaces/secret/v1alpha1/secret_cli.go index 752a0ce903..7ad5ad4a5d 100644 --- a/internal/namespaces/secret/v1alpha1/secret_cli.go +++ b/internal/namespaces/secret/v1alpha1/secret_cli.go @@ -349,44 +349,9 @@ func secretVersionCreate() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "password-generation.length", - Short: `Length of the password to generate (between 1 and 1024)`, - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "password-generation.no-lowercase-letters", - Short: `Do not include lower case letters by default in the alphabet`, - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "password-generation.no-uppercase-letters", - Short: `Do not include upper case letters by default in the alphabet`, - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "password-generation.no-digits", - Short: `Do not include digits by default in the alphabet`, - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "password-generation.additional-chars", - Short: `Additional ascii characters to be included in the alphabet`, - Required: false, - Deprecated: false, - Positional: false, - }, { Name: "data-crc32", - Short: `The CRC32 checksum of the data as a base-10 integer`, + Short: `(Optional.) The CRC32 checksum of the data as a base-10 integer`, Required: false, Deprecated: false, Positional: false,