difftreelog
feat print file name on multi output
in: master
1 file changed
cmds/jrsonnet/src/main.rsdiffbeforeafterboth103 dir.pop();103 dir.pop();104 create_dir_all(dir)?;104 create_dir_all(dir)?;105 }105 }106 println!("{}", path.to_str().expect("path"));106 let mut file = File::create(path)?;107 let mut file = File::create(path)?;107 write!(file, "{}", data)?;108 writeln!(file, "{}", data)?;108 }109 }109 } else if let Some(path) = opts.output.output_file {110 } else if let Some(path) = opts.output.output_file {110 if opts.output.create_output_dirs {111 if opts.output.create_output_dirs {113 create_dir_all(dir)?;114 create_dir_all(dir)?;114 }115 }115 let mut file = File::create(path)?;116 let mut file = File::create(path)?;116 write!(file, "{}", state.manifest(val)?)?;117 writeln!(file, "{}", state.manifest(val)?)?;117 } else {118 } else {118 println!("{}", state.manifest(val)?);119 println!("{}", state.manifest(val)?);119 }120 }