feat(identity): added --add-recipient and --remove-recipient flags for multi-recipient keys

This commit is contained in:
Lewis Wynne 2026-02-13 15:12:22 +00:00
parent f9ff2c0d62
commit 579e6a1eee
12 changed files with 575 additions and 51 deletions

View file

@ -134,8 +134,7 @@ func runDoctor(w io.Writer) bool {
issues = append(issues, "Fix with 'pda config edit' or 'pda config init --new'")
}
if unexpectedFiles(cfgDir, map[string]bool{
"config.toml": true,
"identity.txt": true,
"config.toml": true,
}) {
issues = append(issues, "Unexpected file(s) in directory")
}
@ -353,7 +352,7 @@ func unexpectedDataFiles(dir string) bool {
if e.IsDir() && name == ".git" {
continue
}
if !e.IsDir() && (name == ".gitignore" || filepath.Ext(name) == ".ndjson") {
if !e.IsDir() && (name == ".gitignore" || name == "identity.txt" || name == "recipients.txt" || filepath.Ext(name) == ".ndjson") {
continue
}
return true