forked from NationTech/harmony
Co-authored-by: Jean-Gabriel Gill-Couture <jeangabriel.gc@gmail.com> Co-authored-by: Ian Letourneau <ian@noma.to> Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/130 Reviewed-by: Ian Letourneau <ian@noma.to> Co-authored-by: Jean-Gabriel Gill-Couture <jg@nationtech.io> Co-committed-by: Jean-Gabriel Gill-Couture <jg@nationtech.io>
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();
|
|
}
|