op CLI version
2.19.0-beta.01
Goal or desired behavior
It'd be a nice feature to set a default value for a credential field. This is handy for Redis shell plugin, where the default username is "default".
Current behavior
Currently there isn't a way to set a default value to the credential field:
|
type CredentialField struct { |
|
// The name of the field, e.g. "Token", "Password", or "Username". |
|
Name sdk.FieldName |
|
|
|
// Alternative names for this field. Can be used to deprecate field names without breaking existing setups. |
|
// If there are values present for multiple entries, the first match will be chosen. |
|
AlternativeNames []string |
|
|
|
// A description of the field. |
|
MarkdownDescription string |
|
|
|
// Whether this field is secret and should be concealed where possible. |
|
Secret bool |
|
|
|
// Whether this field is optional. |
|
Optional bool |
|
|
|
// (Optional) Describes how values of this field look like, such as the length, charset, etc. |
|
Composition *ValueComposition |
|
} |
Relevant log output
No response
op CLI version
2.19.0-beta.01
Goal or desired behavior
It'd be a nice feature to set a default value for a credential field. This is handy for Redis shell plugin, where the default username is "default".
Current behavior
Currently there isn't a way to set a default value to the credential field:
shell-plugins/sdk/schema/credential_type.go
Lines 32 to 51 in c95bf76
Relevant log output
No response