From c002cef1e5d19946244086531f1178446fed8545 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 27 Nov 2024 08:55:31 +0000 Subject: feat(logout): add logout command rather than using `ngit login` which is less intuative --- src/bin/ngit/sub_commands/login.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/ngit/sub_commands/login.rs') diff --git a/src/bin/ngit/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs index afde145..7670bc3 100644 --- a/src/bin/ngit/sub_commands/login.rs +++ b/src/bin/ngit/sub_commands/login.rs @@ -144,7 +144,7 @@ async fn logout(git_repo: Option<&Repo>, local_only: bool) -> Result<(bool, bool Ok((true, local_only)) } -fn get_global_login_config_items_set() -> Vec<&'static str> { +pub fn get_global_login_config_items_set() -> Vec<&'static str> { [ "nostr.nsec", "nostr.npub", @@ -157,7 +157,7 @@ fn get_global_login_config_items_set() -> Vec<&'static str> { .collect::>() } -fn format_items_as_list(items: &[&str]) -> String { +pub fn format_items_as_list(items: &[&str]) -> String { match items.len() { 0 => String::new(), 1 => items[0].to_string(), -- cgit v1.2.3