added: lib.rs split + tests/ scaffold for integration testing
This commit is contained in:
1 parent
efcef1cab4
commit
aeeef26614
6 files changed
+262
-14
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
//! rmcl crate root. main.rs is a thin wrapper around this library so
|
||||
//! integration tests in tests/ can import everything.
|
||||
|
||||
pub mod auth;
|
||||
pub mod cli;
|
||||
pub mod config;
|
||||
pub mod instance;
|
||||
pub mod instance_logs;
|
||||
pub mod launch_profile;
|
||||
pub mod migrate;
|
||||
pub mod net;
|
||||
pub mod running;
|
||||
pub mod tui;
|
||||
+3
-14
@@ -1,25 +1,14 @@
|
||||
pub mod auth;
|
||||
mod cli;
|
||||
pub mod config;
|
||||
pub mod instance;
|
||||
pub mod instance_logs;
|
||||
pub mod launch_profile;
|
||||
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();
|
||||
rmcl::migrate::run_legacy_rename();
|
||||
|
||||
// Guard must stay in scope to keep the log file writer alive
|
||||
let _guard = tui::logging::init();
|
||||
let _guard = rmcl::tui::logging::init();
|
||||
if let Err(e) = color_eyre::install() {
|
||||
eprintln!("Failed to install color-eyre: {}", e);
|
||||
}
|
||||
|
||||
cli::init().await
|
||||
rmcl::cli::init().await
|
||||
}
|
||||
Reference in new issue
Block a user