aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..b1e52d6
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,22 @@
+use crate::{
+ app::App,
+ ui::Ui
+};
+use ratatui;
+use color_eyre::Result;
+//use reqwest;
+mod app;
+mod ui;
+
+fn main() -> Result<()> {
+ // Setup terminal
+ let mut terminal = ratatui::init();
+
+ // Run the app
+ let mut app = App::new();
+ let res = Ui::new(app).run(terminal);
+
+ // Clean
+ ratatui::restore();
+ res
+}
ArKa projects. All rights to me, and your next child right arm.