forked from yvv/decision
WIP lot V : le tampon câblé dans le serveur (migration 0010, simulation, discard-simulation), tests en cours de reprise — repris tel quel après la coupure du 02/11
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
//! 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<()> {
|
||||
ld_server::run().await
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user