diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/login.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/login.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 { | |||
| 23 | /// don't fetch user metadata and relay list from relays | 23 | /// don't fetch user metadata and relay list from relays |
| 24 | #[arg(long, action)] | 24 | #[arg(long, action)] |
| 25 | offline: bool, | 25 | offline: bool, |
| 26 | |||
| 27 | /// signer relay for nostrconnect (can be used multiple times) | ||
| 28 | #[arg(long = "signer-relay")] | ||
| 29 | signer_relays: Vec<String>, | ||
| 26 | } | 30 | } |
| 27 | 31 | ||
| 28 | pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> { | 32 | pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> { |
| @@ -62,6 +66,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> { | |||
| 62 | client.as_ref(), | 66 | client.as_ref(), |
| 63 | signer_info, | 67 | signer_info, |
| 64 | log_in_locally_only || command_args.local, | 68 | log_in_locally_only || command_args.local, |
| 69 | &command_args.signer_relays, | ||
| 65 | ) | 70 | ) |
| 66 | .await?; | 71 | .await?; |
| 67 | } | 72 | } |