|
|
@ -83,7 +83,7 @@ fn main() -> Result<()> {
|
|
|
|
while let Some(msg) = app.pop_msg_out() {
|
|
|
|
while let Some(msg) = app.pop_msg_out() {
|
|
|
|
match msg {
|
|
|
|
match msg {
|
|
|
|
app::MsgOut::Debug(path) => {
|
|
|
|
app::MsgOut::Debug(path) => {
|
|
|
|
fs::write(&path, format!("{}\n", serde_yaml::to_string(&app)?))?;
|
|
|
|
fs::write(&path, serde_yaml::to_string(&app)?)?;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
app::MsgOut::PrintResultAndQuit => {
|
|
|
|
app::MsgOut::PrintResultAndQuit => {
|
|
|
@ -92,7 +92,7 @@ fn main() -> Result<()> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
app::MsgOut::PrintAppStateAndQuit => {
|
|
|
|
app::MsgOut::PrintAppStateAndQuit => {
|
|
|
|
let out = format!("{}\n", serde_yaml::to_string(&app)?);
|
|
|
|
let out = serde_yaml::to_string(&app)?;
|
|
|
|
output = Some(out);
|
|
|
|
output = Some(out);
|
|
|
|
break 'outer;
|
|
|
|
break 'outer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|