pub fn write_state(state: &Value, output: Option<&Path>) -> Result<(), String>
Grava o estado em output (ou no stdout, sem ele).
output