upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/mod.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 10:58:37 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 10:58:37 +0000
commit2f2819cc2365be07fedfd35ab3654b3607e29e76 (patch)
treed59b4ce913500ae1c0b31ce0982c7756f3195a59 /src/bin/ngit/sub_commands/mod.rs
parent4d23e609ec3d6c25b5f5918fd317eef02a434efe (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 'src/bin/ngit/sub_commands/mod.rs')
-rw-r--r--src/bin/ngit/sub_commands/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/ngit/sub_commands/mod.rs b/src/bin/ngit/sub_commands/mod.rs
index 60dc413..c4d0821 100644
--- a/src/bin/ngit/sub_commands/mod.rs
+++ b/src/bin/ngit/sub_commands/mod.rs
@@ -15,3 +15,4 @@ pub mod pr_status;
15pub mod repo; 15pub mod repo;
16pub mod send; 16pub mod send;
17pub mod sync; 17pub mod sync;
18pub mod whoami;