1 2 3 4 5 6 7 8 9 10 11 12 13
//! Prints host information from inventory use crate::{Result, Host}; use clap::ArgMatches; use serde_json::json; pub fn run(hosts: Vec<Host>, _matches: &ArgMatches) -> Result<()> { let res = json!({"hosts": hosts}); println!("{}", res); Ok(()) }