This commit is contained in:
everbarry 2026-05-06 18:27:45 +02:00
parent 063152ca46
commit 1781fd3960

View File

@ -166,7 +166,7 @@ def _cmd_grant(args):
print(f" delivery: direct p2p ({result['peer']})")
# ── credentials / collect ───────────────────────────────────────────
# ── credentials ─────────────────────────────────────────────────────
def _cmd_credentials_list(args):
local = store.list_credentials(args.userid)
@ -184,8 +184,6 @@ def _cmd_credentials_list(args):
for reg_hex in owned:
print(f" {reg_hex}:__admin__ (reserved owner role)")
print("\npending grants: removed (use direct p2p listener)")
def _cmd_p2p_listen(args):
if not _is_loopback_host(args.host):
@ -326,9 +324,9 @@ def main():
c.set_defaults(func=_cmd_grant)
# credentials
cred_p = sub.add_parser("credentials", help="credentials (local + pending)")
cred_p = sub.add_parser("credentials", help="local credentials")
cred_sub = cred_p.add_subparsers(dest="action", required=True)
c = cred_sub.add_parser("list", help="show local + pending credentials")
c = cred_sub.add_parser("list", help="show local credentials")
c.add_argument("userid")
c.set_defaults(func=_cmd_credentials_list)