aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorOxbian <oxbian@mailbox.org>2025-02-17 22:14:48 -0500
committerOxbian <oxbian@mailbox.org>2025-02-17 22:14:48 -0500
commitb6d93c110c8a14f738d897c0012a2a7d61044f67 (patch)
tree6f6a83d8414c70bcadc19c5f9c2dd82266be39fa /src/main.rs
downloadNAI-b6d93c110c8a14f738d897c0012a2a7d61044f67.tar.gz
NAI-b6d93c110c8a14f738d897c0012a2a7d61044f67.zip
feat: basic working interface + LLM API call
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.