mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
30 lines
554 B
Rust
30 lines
554 B
Rust
mod config;
|
|
mod migration;
|
|
mod platforms;
|
|
mod settings;
|
|
mod steam;
|
|
mod steamgriddb;
|
|
mod sync;
|
|
mod ui;
|
|
|
|
use color_eyre::eyre::Result;
|
|
|
|
fn main() -> Result<()> {
|
|
color_eyre::install()?;
|
|
ensure_config_folder();
|
|
migration::migrate_config();
|
|
|
|
let args: Vec<String> = std::env::args().collect();
|
|
if args.contains(&"--no-ui".to_string()) {
|
|
ui::run_sync();
|
|
} else {
|
|
ui::run_ui(args);
|
|
}
|
|
Ok(())
|
|
}
|
|
|
|
fn ensure_config_folder() {
|
|
let path = config::get_config_folder();
|
|
let _ = std::fs::create_dir_all(&path);
|
|
}
|