upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-11-11 09:06:19 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-11-11 09:06:19 +0000
commitf08ee98ab7e19d4e42ffa85aa619f012441fbe47 (patch)
treee4d2a15ebeb8a7549ce7e233f4690d71ac95c398 /src/bin/ngit/main.rs
parent4331b73fbda4831f09a783732d6710012a4dcf20 (diff)
Revert "refactor: remove ngit `pull` `push` `fetch`"
This reverts commit 43b5e9b38bf5dcfbac85637a2d3efc69ddfe77ac.
Diffstat (limited to 'src/bin/ngit/main.rs')
-rw-r--r--src/bin/ngit/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs
index 38dc2c1..45cbef5 100644
--- a/src/bin/ngit/main.rs
+++ b/src/bin/ngit/main.rs
@@ -15,9 +15,12 @@ mod sub_commands;
15async fn main() -> Result<()> { 15async fn main() -> Result<()> {
16 let cli = Cli::parse(); 16 let cli = Cli::parse();
17 match &cli.command { 17 match &cli.command {
18 Commands::Fetch(args) => sub_commands::fetch::launch(&cli, args).await,
18 Commands::Login(args) => sub_commands::login::launch(&cli, args).await, 19 Commands::Login(args) => sub_commands::login::launch(&cli, args).await,
19 Commands::Init(args) => sub_commands::init::launch(&cli, args).await, 20 Commands::Init(args) => sub_commands::init::launch(&cli, args).await,
20 Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await, 21 Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await,
21 Commands::List => sub_commands::list::launch().await, 22 Commands::List => sub_commands::list::launch().await,
23 Commands::Pull => sub_commands::pull::launch().await,
24 Commands::Push(args) => sub_commands::push::launch(&cli, args).await,
22 } 25 }
23} 26}