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