summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 9228eaff053aafd506b3b2401169c0ab5af68fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;

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