fix(cli): recognize account ls alias for agent role; align account show output; document edit password invariant
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -167,6 +167,10 @@ func runAccount(args []string, role store.Role, out, errOut io.Writer) int {
|
||||
acc.SubjectRegex = *subj
|
||||
}
|
||||
})
|
||||
// GetAccount loaded the existing decrypted password into acc; fs.Visit
|
||||
// overwrites acc.Password only when --password was passed; UpdateAccount
|
||||
// re-seals whatever non-empty password is present, so omitting --password
|
||||
// on edit preserves the existing password unchanged.
|
||||
if err := st.UpdateAccount(acc); err != nil {
|
||||
fmt.Fprintf(errOut, "edit: %v\n", err)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user