summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQrius <[email protected]>2024-09-26 00:11:05 +0200
committerQrius <[email protected]>2024-09-26 00:11:05 +0200
commit5826c8ce131c4b038c94590734ed12e6dc3d0680 (patch)
treebced660b52ca6015f8195c76f5f09a622954512a
parentba82850b0ea54098b32c7e76d281f6444cbe5522 (diff)
downloadskaldpress-5826c8ce131c4b038c94590734ed12e6dc3d0680.tar.gz
skaldpress-5826c8ce131c4b038c94590734ed12e6dc3d0680.zip
Slightly improve stdout messages
-rw-r--r--src/skaldpress/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/skaldpress/main.rs b/src/skaldpress/main.rs
index 1ad95f9..81fef9f 100644
--- a/src/skaldpress/main.rs
+++ b/src/skaldpress/main.rs
@@ -111,6 +111,7 @@ fn compile_file_and_write(source_file_path: &Path) -> Result<(), Box<dyn std::er
)
})?;
+ println!("> Writing {:#?} to {:#?}", source_file_path, dest_file_path);
fs::write(&dest_file_path, cfile.content)?;
Ok(())
}
@@ -140,7 +141,7 @@ fn compile_files_in_directory(directory: &Path) -> Result<(), SkaldpressError> {
};
if metadata.is_file() {
- println!("Compiling {:#?}", path.as_path());
+ println!("< Compiling {:#?}", path.as_path());
if let Err(e) = compile_file_and_write(path.as_path()) {
println!(
"\x1b[31mError compiling {:#?}: {}\x1b[0m",