mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-10-11 09:04:27 +08:00
17 lines
540 B
Rust
17 lines
540 B
Rust
|
|
#[cfg(not(feature = "library"))]
|
|
fn main() -> std::io::Result<()> {
|
|
let args = ew::get_args();
|
|
if let Some(ew::Commands::Maintenance { message }) = args.command {
|
|
return ew::run_maintenance(args.port, message);
|
|
}
|
|
ew::runtime::update_data_path(&args.path);
|
|
ew::runtime::update_masterdata_path(&args.masterdata);
|
|
ew::run_server(false)
|
|
}
|
|
|
|
#[cfg(feature = "library")]
|
|
fn main() {
|
|
panic!("Compiled with the library feature! You should load the shared object library and call the exported methods there.");
|
|
}
|