Some checks failed
Run Check Script / check (pull_request) Failing after 30s
28 lines
633 B
Rust
28 lines
633 B
Rust
use harmony::{
|
|
inventory::Inventory,
|
|
modules::{
|
|
dummy::{ErrorScore, PanicScore, SuccessScore},
|
|
inventory::LaunchDiscoverInventoryAgentScore,
|
|
},
|
|
topology::LocalhostTopology,
|
|
};
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
harmony_cli::run(
|
|
Inventory::autoload(),
|
|
LocalhostTopology::new(),
|
|
vec![
|
|
Box::new(SuccessScore {}),
|
|
Box::new(ErrorScore {}),
|
|
Box::new(PanicScore {}),
|
|
Box::new(LaunchDiscoverInventoryAgentScore {
|
|
discovery_timeout: Some(10),
|
|
}),
|
|
],
|
|
None,
|
|
)
|
|
.await
|
|
.unwrap();
|
|
}
|