diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 10:58:37 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-05 10:58:37 +0000 |
| commit | 2f2819cc2365be07fedfd35ab3654b3607e29e76 (patch) | |
| tree | d59b4ce913500ae1c0b31ce0982c7756f3195a59 /skills | |
| parent | 4d23e609ec3d6c25b5f5918fd317eef02a434efe (diff) | |
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.
Diffstat (limited to 'skills')
| -rw-r--r-- | skills/ngit/SKILL.md | 2 |
1 files changed, 2 insertions, 0 deletions
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 <ID|nevent> | |||
| 143 | ## Account management | 143 | ## Account management |
| 144 | 144 | ||
| 145 | ```bash | 145 | ```bash |
| 146 | ngit account whoami --json | ||
| 147 | ngit account whoami --json --offline # use cache, no network | ||
| 146 | ngit account login # interactive, stores nsec in global git config | 148 | ngit account login # interactive, stores nsec in global git config |
| 147 | ngit account login --bunker-url bunker://... # NIP-46 remote signer | 149 | ngit account login --bunker-url bunker://... # NIP-46 remote signer |
| 148 | ngit account login --local # this repo only | 150 | ngit account login --local # this repo only |