2023-01-10 01:30:21 +00:00
|
|
|
use std::process;
|
|
|
|
|
|
|
|
use display::theme::Theme;
|
|
|
|
|
|
|
|
use crate::display::Screen;
|
|
|
|
|
|
|
|
extern crate termion;
|
2023-01-16 15:23:44 +00:00
|
|
|
mod cfg;
|
2023-01-10 01:30:21 +00:00
|
|
|
mod display;
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> Result<(), anyhow::Error> {
|
2023-01-16 15:23:44 +00:00
|
|
|
let config = cfg::Config::load_or_create()?;
|
2023-01-10 01:30:21 +00:00
|
|
|
{
|
2023-01-16 15:23:44 +00:00
|
|
|
let x = Screen::new(config.theme).unwrap();
|
2023-01-10 01:30:21 +00:00
|
|
|
x.start().await?;
|
|
|
|
}
|
|
|
|
process::exit(0);
|
|
|
|
}
|