upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-26 10:29:33 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-26 10:36:58 +0100
commit0134ab8eb413b8b81ec8e179897ddb8ea63e134e (patch)
tree1d3ef8786fa806a4d39378286c68cda722cc017d /src/sub_commands
parent52f9efa50f81142da013c4da5f3cd3091e07916b (diff)
feat(remote): add nostr git remote helper
as a simple proxy to the first git server listed in announcement parse clone url as `nostr://naddr123...`
Diffstat (limited to 'src/sub_commands')
-rw-r--r--src/sub_commands/fetch.rs2
-rw-r--r--src/sub_commands/init.rs2
-rw-r--r--src/sub_commands/login.rs2
-rw-r--r--src/sub_commands/push.rs2
-rw-r--r--src/sub_commands/send.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/sub_commands/fetch.rs b/src/sub_commands/fetch.rs
index ab6e0fc..b1e83c5 100644
--- a/src/sub_commands/fetch.rs
+++ b/src/sub_commands/fetch.rs
@@ -9,10 +9,10 @@ use crate::client::Client;
9#[cfg(test)] 9#[cfg(test)]
10use crate::client::MockConnect; 10use crate::client::MockConnect;
11use crate::{ 11use crate::{
12 cli::Cli,
12 client::{fetching_with_report, Connect}, 13 client::{fetching_with_report, Connect},
13 git::{Repo, RepoActions}, 14 git::{Repo, RepoActions},
14 repo_ref::get_repo_coordinates, 15 repo_ref::get_repo_coordinates,
15 Cli,
16}; 16};
17 17
18#[derive(clap::Args)] 18#[derive(clap::Args)]
diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs
index 28ba21b..ba188c9 100644
--- a/src/sub_commands/init.rs
+++ b/src/sub_commands/init.rs
@@ -10,6 +10,7 @@ use crate::client::Client;
10#[cfg(test)] 10#[cfg(test)]
11use crate::client::MockConnect; 11use crate::client::MockConnect;
12use crate::{ 12use crate::{
13 cli::Cli,
13 cli_interactor::{Interactor, InteractorPrompt, PromptInputParms}, 14 cli_interactor::{Interactor, InteractorPrompt, PromptInputParms},
14 client::{fetching_with_report, get_repo_ref_from_cache, Connect}, 15 client::{fetching_with_report, get_repo_ref_from_cache, Connect},
15 git::{Repo, RepoActions}, 16 git::{Repo, RepoActions},
@@ -18,7 +19,6 @@ use crate::{
18 extract_pks, get_repo_config_from_yaml, save_repo_config_to_yaml, 19 extract_pks, get_repo_config_from_yaml, save_repo_config_to_yaml,
19 try_and_get_repo_coordinates, RepoRef, 20 try_and_get_repo_coordinates, RepoRef,
20 }, 21 },
21 Cli,
22}; 22};
23 23
24#[derive(Debug, clap::Args)] 24#[derive(Debug, clap::Args)]
diff --git a/src/sub_commands/login.rs b/src/sub_commands/login.rs
index 6f49ba8..77fecdd 100644
--- a/src/sub_commands/login.rs
+++ b/src/sub_commands/login.rs
@@ -5,7 +5,7 @@ use clap;
5use crate::client::Client; 5use crate::client::Client;
6#[cfg(test)] 6#[cfg(test)]
7use crate::client::MockConnect; 7use crate::client::MockConnect;
8use crate::{client::Connect, git::Repo, login, Cli}; 8use crate::{cli::Cli, client::Connect, git::Repo, login};
9 9
10#[derive(clap::Args)] 10#[derive(clap::Args)]
11pub struct SubCommandArgs { 11pub struct SubCommandArgs {
diff --git a/src/sub_commands/push.rs b/src/sub_commands/push.rs
index acd91f0..56927fe 100644
--- a/src/sub_commands/push.rs
+++ b/src/sub_commands/push.rs
@@ -5,6 +5,7 @@ use crate::client::Client;
5#[cfg(test)] 5#[cfg(test)]
6use crate::client::MockConnect; 6use crate::client::MockConnect;
7use crate::{ 7use crate::{
8 cli::Cli,
8 client::{fetching_with_report, get_repo_ref_from_cache, Connect}, 9 client::{fetching_with_report, get_repo_ref_from_cache, Connect},
9 git::{str_to_sha1, Repo, RepoActions}, 10 git::{str_to_sha1, Repo, RepoActions},
10 login, 11 login,
@@ -21,7 +22,6 @@ use crate::{
21 identify_ahead_behind, send_events, 22 identify_ahead_behind, send_events,
22 }, 23 },
23 }, 24 },
24 Cli,
25}; 25};
26 26
27#[derive(Debug, clap::Args)] 27#[derive(Debug, clap::Args)]
diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs
index 73c980b..07eb343 100644
--- a/src/sub_commands/send.rs
+++ b/src/sub_commands/send.rs
@@ -20,6 +20,7 @@ use crate::client::Client;
20#[cfg(test)] 20#[cfg(test)]
21use crate::client::MockConnect; 21use crate::client::MockConnect;
22use crate::{ 22use crate::{
23 cli::Cli,
23 cli_interactor::{ 24 cli_interactor::{
24 Interactor, InteractorPrompt, PromptConfirmParms, PromptInputParms, PromptMultiChoiceParms, 25 Interactor, InteractorPrompt, PromptConfirmParms, PromptInputParms, PromptMultiChoiceParms,
25 }, 26 },
@@ -29,7 +30,6 @@ use crate::{
29 git::{Repo, RepoActions}, 30 git::{Repo, RepoActions},
30 login, 31 login,
31 repo_ref::{get_repo_coordinates, RepoRef}, 32 repo_ref::{get_repo_coordinates, RepoRef},
32 Cli,
33}; 33};
34 34
35#[derive(Debug, clap::Args)] 35#[derive(Debug, clap::Args)]