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/sub_commands/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/ngit/sub_commands/init.rs') diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 0554f32..85496ea 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs @@ -400,8 +400,8 @@ fn validate_fresh(cli: &Cli, args: &SubCommandArgs, user_has_grasp_list: bool) - #[derive(Debug, clap::Args)] pub struct SubCommandArgs { - #[clap(long)] - /// name of repository (preferred over --identifier) + #[clap(long, alias = "title")] + /// name of repository (preferred over --identifier); --title is an alias name: Option, #[clap(long)] /// shortname with no spaces or special characters -- cgit v1.2.3