From ecae4bd13c1e28d7efd9ee9bb106ff27fa0451f6 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 4 Mar 2026 16:59:45 +0000 Subject: 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`. --- src/bin/ngit/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/ngit/main.rs') 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() { }, Commands::Init(args) => sub_commands::init::launch(&cli, args).await, Commands::Repo(args) => { - sub_commands::repo::launch(&cli, args.repo_command.as_ref(), args.offline).await + sub_commands::repo::launch(&cli, args.repo_command.as_ref(), args.offline, args.json).await } Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await, Commands::Pr(args) => match &args.pr_command { -- cgit v1.2.3