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

pub mod app;
pub mod sheet;
pub mod tui;
pub mod widgets;
pub mod lua;
pub mod config;

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