)}
}
-//---------- alter game json ----------
+//---------- alter game ----------
mod alter_game_adhoc {
use super::*;
let insns = args.insns.iter().enumerate().map(|(i,s)| match fmtname {
"json" => serde_json::from_str(&s).map_err(AE::from),
+ "ron" => ron::de:: from_str(&s).map_err(AE::from),
_ => panic!(),
}
.with_context(|| s.clone())
for resp in resps {
println!("{}", match fmtname {
"json" => serde_json::to_string(&resp).map_err(AE::from),
+ "ron" => ron::ser:: to_string(&resp).map_err(AE::from),
_ => panic!(),
}
.context("re-format response")?);
"run an ad-hoc AlterGame commandr",
call,
)}
+ inventory::submit!{Subcommand(
+ "alter-game-ron",
+ "run an ad-hoc AlterGame command (Rusty Object Notation)",
+ call,
+ )}
}
//---------- upload-bundle ----------