Skip to content

record-add: add --labels=on/off to omit redundant standard-field labels#2142

Merged
idimov-keeper merged 1 commit into
releasefrom
record-add-command-add-labels-option
Jun 11, 2026
Merged

record-add: add --labels=on/off to omit redundant standard-field labels#2142
idimov-keeper merged 1 commit into
releasefrom
record-add-command-add-labels-option

Conversation

@idimov-keeper

Copy link
Copy Markdown
Contributor

record-add wrote a redundant "label":"<type>" on every standard field pulled from the record-type definition (e.g. login, password, fileRef, oneTimeCode), unlike the Web Vault UI which omits those.

Adds an optional --labels {on,off} flag (default "on" for legacy compatibility):

  • on (default): unchanged — fields with no label in the record-type definition fall back to the field type as the label.
  • off: standard fields are written label-free, matching the Vault UI. Real labels from the record-type definition (e.g. script->rotationScripts) and any explicitly provided field labels are always preserved.

@idimov-keeper idimov-keeper merged commit b0500f7 into release Jun 11, 2026
4 checks passed
@idimov-keeper idimov-keeper deleted the record-add-command-add-labels-option branch June 11, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant