diff --git a/Cargo.lock b/Cargo.lock index 1ef9e76..1580cb8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1593,7 +1593,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "tmpo" -version = "2.0.4" +version = "2.0.5" dependencies = [ "assert_cmd 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "base64 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 8e72d9c..0fffdf8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tmpo" description = "Command line utility to create new workspaces based on predefined templates" -version = "2.0.4" +version = "2.0.5" authors = ["Thomas Pöhlmann "] edition = "2018" license = "MIT" diff --git a/src/action/template/test.rs b/src/action/template/test.rs index 7b172ab..4eda19d 100644 --- a/src/action/template/test.rs +++ b/src/action/template/test.rs @@ -27,8 +27,8 @@ impl Action { let directory_path = std::path::Path::new(&directory); - match template::Template::new(directory_path) { - Ok(_) => (), + let template = match template::Template::new(directory_path) { + Ok(template) => template, Err(error) => { log::error!("{}", error); eprintln!("{}", error); @@ -36,6 +36,8 @@ impl Action { } }; - out::success::template_tested() + out::info::display_template(&template); + + out::success::template_tested(); } } diff --git a/src/migration/two.rs b/src/migration/two.rs index 41a4abb..cd6fe9a 100644 --- a/src/migration/two.rs +++ b/src/migration/two.rs @@ -22,7 +22,7 @@ fn configuration() { eprintln!("Couldn't write to file: {}", e); } - if let Err(e) = writeln!(file, crate_version!()) { + if let Err(e) = writeln!(file, "version: {}", crate_version!()) { eprintln!("Couldn't write to file: {}", e); }