Skip to content

feat: Default value for a credential field #281

@arunsathiya

Description

@arunsathiya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestop-cliFunctionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions