diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-21 16:53:17 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-21 16:53:17 +0000 |
| commit | f79014235e85554e3661b3f2a02b8fa88bc192ff (patch) | |
| tree | fceec3ff2df212148a3420af7cef81a3f818463e /src/bin/ngit/sub_commands/pull.rs | |
| parent | 91b0eac4daf92b7b740267ef203a1a8ba591974b (diff) | |
feat(login): overhaul login experience
* simplify login menu, making it more accessable to newcomers and
easier to select remote signer options
* enable `ngit login` to work from anywhere (not just a git repo)
* assume fresh login details saved to global git config but fallback
to local repository
* maintain local repository login via `ngit login --local`
* maintain login via CLI arguments eg `ngit send --nsec nsec123`
* nudge users to remember nsec when pasting in ncryptsec for a
better UX, whilst maintaining the option to be prompted for
password everytime
* create placeholder menu items for help menu and create account
Diffstat (limited to 'src/bin/ngit/sub_commands/pull.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/pull.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/pull.rs b/src/bin/ngit/sub_commands/pull.rs index d79b7b1..77a65e9 100644 --- a/src/bin/ngit/sub_commands/pull.rs +++ b/src/bin/ngit/sub_commands/pull.rs | |||
| @@ -33,7 +33,7 @@ pub async fn launch() -> Result<()> { | |||
| 33 | let repo_coordinates = get_repo_coordinates(&git_repo, &client).await?; | 33 | let repo_coordinates = get_repo_coordinates(&git_repo, &client).await?; |
| 34 | fetching_with_report(git_repo_path, &client, &repo_coordinates).await?; | 34 | fetching_with_report(git_repo_path, &client, &repo_coordinates).await?; |
| 35 | 35 | ||
| 36 | let repo_ref = get_repo_ref_from_cache(git_repo_path, &repo_coordinates).await?; | 36 | let repo_ref = get_repo_ref_from_cache(Some(git_repo_path), &repo_coordinates).await?; |
| 37 | 37 | ||
| 38 | let logged_in_public_key = | 38 | let logged_in_public_key = |
| 39 | if let Ok(Some(npub)) = git_repo.get_git_config_item("nostr.npub", None) { | 39 | if let Ok(Some(npub)) = git_repo.get_git_config_item("nostr.npub", None) { |