forked from yvv/decision
14 lines
563 B
Rust
14 lines
563 B
Rust
//! libreDecision server — entry point. Everything else lives in the library.
|
|
//!
|
|
//! `ld-server discard-simulation [--apply]` is the act « supprime » that ends the
|
|
//! simulation of the vote (ADR 0012): never run by the server itself.
|
|
|
|
#[tokio::main]
|
|
async fn main() -> anyhow::Result<()> {
|
|
let args: Vec<String> = std::env::args().skip(1).collect();
|
|
match args.first().map(String::as_str) {
|
|
Some("discard-simulation") => ld_server::simulation::run_cli(args.iter().any(|a| a == "--apply")).await,
|
|
_ => ld_server::run().await,
|
|
}
|
|
}
|