harmony/examples/cli/src/main.rs
Ian Letourneau acf7e2f8b8
All checks were successful
Run Check Script / check (pull_request) Successful in -49s
reorder run params & update README
2025-08-04 16:56:19 -04:00

22 lines
444 B
Rust

use harmony::{
inventory::Inventory,
modules::dummy::{ErrorScore, PanicScore, SuccessScore},
topology::LocalhostTopology,
};
#[tokio::main]
async fn main() {
harmony_cli::run(
Inventory::autoload(),
LocalhostTopology::new(),
vec![
Box::new(SuccessScore {}),
Box::new(ErrorScore {}),
Box::new(PanicScore {}),
],
None,
)
.await
.unwrap();
}