upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-03-04 16:59:45 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-03-04 16:59:45 +0000
commitecae4bd13c1e28d7efd9ee9bb106ff27fa0451f6 (patch)
tree96d8208535e8ee672d383dac70446c3cd4865e00 /src/bin/ngit/main.rs
parentaf016dd23101537ccc8ecd5a992bf3b7c6d3abe9 (diff)
add `ngit repo --json` for machine-readable repo detection
Outputs {"is_nostr_repo": false} when not in a nostr repository, or full structured JSON (name, identifier, description, nostr_url, coordinate, maintainers, grasp_servers, git_servers, relays, hashtags) when it is. Always exits 0. Also adds --title as an alias for --name on `ngit init`.
Diffstat (limited to 'src/bin/ngit/main.rs')
-rw-r--r--src/bin/ngit/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs
index 28bf1da..8f3b0da 100644
--- a/src/bin/ngit/main.rs
+++ b/src/bin/ngit/main.rs
@@ -51,7 +51,7 @@ async fn main() {
51 }, 51 },
52 Commands::Init(args) => sub_commands::init::launch(&cli, args).await, 52 Commands::Init(args) => sub_commands::init::launch(&cli, args).await,
53 Commands::Repo(args) => { 53 Commands::Repo(args) => {
54 sub_commands::repo::launch(&cli, args.repo_command.as_ref(), args.offline).await 54 sub_commands::repo::launch(&cli, args.repo_command.as_ref(), args.offline, args.json).await
55 } 55 }
56 Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await, 56 Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await,
57 Commands::Pr(args) => match &args.pr_command { 57 Commands::Pr(args) => match &args.pr_command {