From 4d093c0c5e7b22863926928d2afffd36ad389bef Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 17 Feb 2026 15:46:20 +0000 Subject: add --signer-relay option to ngit account login Allow users to specify custom signer relays for nostrconnect login. Relay URLs are auto-prefixed with wss:// if no scheme is provided. --- src/bin/ngit/sub_commands/login.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/bin/ngit') diff --git a/src/bin/ngit/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs index 9081e66..3acfb66 100644 --- a/src/bin/ngit/sub_commands/login.rs +++ b/src/bin/ngit/sub_commands/login.rs @@ -23,6 +23,10 @@ pub struct SubCommandArgs { /// don't fetch user metadata and relay list from relays #[arg(long, action)] offline: bool, + + /// signer relay for nostrconnect (can be used multiple times) + #[arg(long = "signer-relay")] + signer_relays: Vec, } pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> { @@ -62,6 +66,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> { client.as_ref(), signer_info, log_in_locally_only || command_args.local, + &command_args.signer_relays, ) .await?; } -- cgit v1.2.3