From 2c0218353298fdcc7302d3ff44e7a5964c8ab75d Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Wed, 20 Sep 2023 12:09:07 +0200 Subject: [PATCH] feat: Move app to issue module --- src/{app.rs => issue.rs} | 0 src/{app => issue}/event.rs | 0 src/{app => issue}/page.rs | 0 src/{app => issue}/subscription.rs | 0 src/main.rs | 7 +++++-- 5 files changed, 5 insertions(+), 2 deletions(-) rename src/{app.rs => issue.rs} (100%) rename src/{app => issue}/event.rs (100%) rename src/{app => issue}/page.rs (100%) rename src/{app => issue}/subscription.rs (100%) diff --git a/src/app.rs b/src/issue.rs similarity index 100% rename from src/app.rs rename to src/issue.rs diff --git a/src/app/event.rs b/src/issue/event.rs similarity index 100% rename from src/app/event.rs rename to src/issue/event.rs diff --git a/src/app/page.rs b/src/issue/page.rs similarity index 100% rename from src/app/page.rs rename to src/issue/page.rs diff --git a/src/app/subscription.rs b/src/issue/subscription.rs similarity index 100% rename from src/app/subscription.rs rename to src/issue/subscription.rs diff --git a/src/main.rs b/src/main.rs index cb545a52..8184b89a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,7 @@ use radicle_tui::Window; use radicle::storage::ReadStorage; use term::{passphrase, spinner}; -mod app; +mod issue; pub const NAME: &str = "radicle-tui"; pub const VERSION: &str = env!("CARGO_PKG_VERSION"); @@ -104,7 +104,10 @@ fn execute() -> anyhow::Result<()> { info!("Launching window..."); let mut window = Window::default(); - window.run(&mut app::App::new(profile, id, project, signer), 1000 / FPS)?; + window.run( + &mut issue::App::new(profile, id, project, signer), + 1000 / FPS, + )?; Ok(()) }