Add maintenance subcommand

This commit is contained in:
Ethan O'Brien
2026-09-23 13:12:07 -05:00
parent 3e58691c34
commit e258a8ca42
5 changed files with 183 additions and 3 deletions
+3
View File
@@ -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)