Co-authored-by: Ian Letourneau <letourneau.ian@gmail.com> Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/93
		
			
				
	
	
		
			22 lines
		
	
	
		
			444 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			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();
 | |
| }
 |