upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit')
-rw-r--r--src/bin/ngit/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs
index f07203a..71b6e85 100644
--- a/src/bin/ngit/main.rs
+++ b/src/bin/ngit/main.rs
@@ -7,7 +7,11 @@ use clap::Parser;
7use cli::{AccountCommands, CUSTOMISE_TEMPLATE, Cli, Commands}; 7use cli::{AccountCommands, CUSTOMISE_TEMPLATE, Cli, Commands};
8 8
9mod cli; 9mod cli;
10use ngit::{cli_interactor, client, git, git_events, login, repo_ref}; 10use ngit::{
11 cli_interactor, client,
12 git::{self, utils::set_git_timeout},
13 git_events, login, repo_ref,
14};
11 15
12mod sub_commands; 16mod sub_commands;
13 17
@@ -20,6 +24,8 @@ async fn main() -> Result<()> {
20 std::process::exit(0); // Exit the program 24 std::process::exit(0); // Exit the program
21 } 25 }
22 26
27 let _ = set_git_timeout();
28
23 if let Some(command) = &cli.command { 29 if let Some(command) = &cli.command {
24 match command { 30 match command {
25 Commands::Account(args) => match &args.account_command { 31 Commands::Account(args) => match &args.account_command {