mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-10-11 17:14:30 +08:00
Add maintenance subcommand
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
#[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)
|
||||
|
||||
Reference in New Issue
Block a user