refactor: put every filesystem write behind one module
This commit is contained in:
11
src/output.rs
Normal file
11
src/output.rs
Normal 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};
|
||||
Reference in New Issue
Block a user