Renames Cargo package, binary, internal path identifiers, java shim, user-agent, log filename, desktop shortcut Exec lines, and CLI program name. Wires src/migrate.rs into main() so existing users have their on-disk data (~/.config/mcl/, ~/.local/share/mcl/, ~/.cache/mcl/) moved to the new locations on first launch. BREAKING CHANGE: binary is now named rmcl. Old paths are auto-migrated.
25 lines
565 B
Rust
25 lines
565 B
Rust
pub mod auth;
|
|
mod cli;
|
|
pub mod config;
|
|
pub mod instance;
|
|
pub mod instance_logs;
|
|
mod migrate;
|
|
pub mod net;
|
|
pub mod running;
|
|
pub mod tui;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
// Run before logging::init() so the cache rename isn't blocked by a
|
|
// freshly-created ~/.cache/rmcl/ directory.
|
|
migrate::run_legacy_rename();
|
|
|
|
// Guard must stay in scope to keep the log file writer alive
|
|
let _guard = tui::logging::init();
|
|
if let Err(e) = color_eyre::install() {
|
|
eprintln!("Failed to install color-eyre: {}", e);
|
|
}
|
|
|
|
cli::init().await
|
|
}
|