mod app;
mod transcript;

use app::{App, Flags};
use cosmic::app::Settings;
use cosmic::iced::Size;

fn main() -> anyhow::Result<()> {
    tracing_subscriber::fmt()
        .with_timer(tracing_subscriber::fmt::time::uptime())
        .with_env_filter(
            tracing_subscriber::EnvFilter::try_from_default_env()
                .unwrap_or_else(|_| "warn,kordophone_cosmic=info".into()),
        )
        .init();

    let flags = Flags::from_env();
    let settings = Settings::default().size(Size::new(1120.0, 780.0));
    cosmic::app::run::<App>(settings, flags)?;
    Ok(())
}
