refactor: put every filesystem write behind one module

This commit is contained in:
2026-09-08 12:04:51 +00:00
parent bbbca755be
commit a3c08f6eaa
10 changed files with 261 additions and 236 deletions

11
src/output.rs Normal file
View File

@@ -0,0 +1,11 @@
// progress and warnings go to stderr, so what a caller pipes is only ever the
// data a command was asked for
macro_rules! note {
($($arg:tt)*) => { eprintln!($($arg)*) };
}
macro_rules! warning {
($($arg:tt)*) => { eprintln!("warning: {}", format_args!($($arg)*)) };
}
pub(crate) use {note, warning};