From 2f2819cc2365be07fedfd35ab3654b3607e29e76 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 10:58:37 +0000 Subject: add `ngit account whoami` command Shows currently logged-in account(s) with name and npub. When both a local (repo-scoped) and global account are configured, displays both with local marked as active. Supports --json (returns local, global, and active objects each with name, npub, nip05, scope) and --offline (reads from cache only, no network). Fixes doc_markdown clippy warning in cli.rs. --- skills/ngit/SKILL.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'skills') diff --git a/skills/ngit/SKILL.md b/skills/ngit/SKILL.md index 6da6305..7621086 100644 --- a/skills/ngit/SKILL.md +++ b/skills/ngit/SKILL.md @@ -143,6 +143,8 @@ ngit issue reopen ## Account management ```bash +ngit account whoami --json +ngit account whoami --json --offline # use cache, no network ngit account login # interactive, stores nsec in global git config ngit account login --bunker-url bunker://... # NIP-46 remote signer ngit account login --local # this repo only -- cgit v1.2.3