upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-15 17:14:09 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-15 17:18:36 +0100
commit142fee58b0449b3fe3f436986339c318de66b33f (patch)
tree61d4c78e4fed0024d426dd444424b58c36fecf5b /src/main.rs
parentba82a894fad645757c49242c11573b6c5dd8d1e6 (diff)
feat(fetch): fetch events and save to cache
enabler to add simplicity, efficency and offline capability to other functions improve repo announcement selection
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 9f53084..1790c21 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -39,6 +39,8 @@ pub struct Cli {
39 39
40#[derive(Subcommand)] 40#[derive(Subcommand)]
41enum Commands { 41enum Commands {
42 /// update cache with latest updates from nostr
43 Fetch(sub_commands::fetch::SubCommandArgs),
42 /// signal you are this repo's maintainer accepting proposals via nostr 44 /// signal you are this repo's maintainer accepting proposals via nostr
43 Init(sub_commands::init::SubCommandArgs), 45 Init(sub_commands::init::SubCommandArgs),
44 /// issue commits as a proposal 46 /// issue commits as a proposal
@@ -57,6 +59,7 @@ enum Commands {
57async fn main() -> Result<()> { 59async fn main() -> Result<()> {
58 let cli = Cli::parse(); 60 let cli = Cli::parse();
59 match &cli.command { 61 match &cli.command {
62 Commands::Fetch(args) => sub_commands::fetch::launch(&cli, args).await,
60 Commands::Login(args) => sub_commands::login::launch(&cli, args).await, 63 Commands::Login(args) => sub_commands::login::launch(&cli, args).await,
61 Commands::Init(args) => sub_commands::init::launch(&cli, args).await, 64 Commands::Init(args) => sub_commands::init::launch(&cli, args).await,
62 Commands::Send(args) => sub_commands::send::launch(&cli, args).await, 65 Commands::Send(args) => sub_commands::send::launch(&cli, args).await,