diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-07-25 00:40:37 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-07-25 00:40:37 +0200 |
| commit | 58b305b9f6d13007d2ea62775054c95177f81092 (patch) | |
| tree | 2123cb5379aa69476b1e549e0bcacc08d67fba71 /src/main.rs | |
first sketch
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..bbfafb1 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,20 @@ +use mlua::prelude::*; +use std::io; + +pub mod app; +pub mod sheet; +pub mod tui; +pub mod widgets; +pub mod lua; + +fn run() -> io::Result<()> { + let mut terminal = tui::init()?; + let app_result = app::App::new().run(&mut terminal); + tui::restore()?; + app_result +} + +fn main() -> LuaResult<()> { + run()?; + Ok(()) +} |