diff options
author | Oxbian <oxbian@mailbox.org> | 2025-02-17 22:14:48 -0500 |
---|---|---|
committer | Oxbian <oxbian@mailbox.org> | 2025-02-17 22:14:48 -0500 |
commit | b6d93c110c8a14f738d897c0012a2a7d61044f67 (patch) | |
tree | 6f6a83d8414c70bcadc19c5f9c2dd82266be39fa /src/main.rs | |
download | NAI-b6d93c110c8a14f738d897c0012a2a7d61044f67.tar.gz NAI-b6d93c110c8a14f738d897c0012a2a7d61044f67.zip |
feat: basic working interface + LLM API call
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 22 |
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 +} |