summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 1a465ca0c1a95bb70a536e1b288fc6a7df4e255f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use mlua::prelude::*;
use std::io;

pub mod app;
pub mod sheet;
pub mod tui;
pub mod widgets;
pub mod lua;
pub mod config;
pub mod state;
pub mod cursor;
pub mod tuicursor;

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(())
}