diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-06-24 09:39:18 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-06-24 09:39:18 +0100 |
| commit | 173ab188b326fbe78cfba4ab455a74619f4556bb (patch) | |
| tree | 743a2413c241f7babd4efb336718c510eb743847 /src/sub_commands/init.rs | |
| parent | 681fdd7683363c62251ecd8dabcc1931a18f4840 (diff) | |
feat(login): store in git config and use cache
replace ngit yaml file config with:
* nsec / ncryptsec / npub in git config in nostr.* namespace
* sql database cache for metadata and relay events
allow different logins to be used for different git repositories by
storing login in local git config
Diffstat (limited to 'src/sub_commands/init.rs')
| -rw-r--r-- | src/sub_commands/init.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs index edaca15..4d1bdfb 100644 --- a/src/sub_commands/init.rs +++ b/src/sub_commands/init.rs | |||
| @@ -59,7 +59,14 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 59 | #[cfg(test)] | 59 | #[cfg(test)] |
| 60 | let mut client = <MockConnect as std::default::Default>::default(); | 60 | let mut client = <MockConnect as std::default::Default>::default(); |
| 61 | 61 | ||
| 62 | let (keys, user_ref) = login::launch(&cli_args.nsec, &cli_args.password, Some(&client)).await?; | 62 | let (keys, user_ref) = login::launch( |
| 63 | &git_repo, | ||
| 64 | &cli_args.nsec, | ||
| 65 | &cli_args.password, | ||
| 66 | Some(&client), | ||
| 67 | false, | ||
| 68 | ) | ||
| 69 | .await?; | ||
| 63 | 70 | ||
| 64 | client.set_keys(&keys).await; | 71 | client.set_keys(&keys).await; |
| 65 | 72 | ||