From e31093a3c3a5a29df222168d474c39b27efb68e4 Mon Sep 17 00:00:00 2001 From: perryrh0dan Date: Sat, 30 Jan 2021 09:38:28 +0100 Subject: [PATCH 1/2] fix(migration): config version --- src/action/template/test.rs | 8 +++++--- src/migration/two.rs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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); } From e139bde971b349ce2ab0f3a2c0e1d031687b47e9 Mon Sep 17 00:00:00 2001 From: perryrh0dan Date: Sat, 30 Jan 2021 09:38:51 +0100 Subject: [PATCH 2/2] fix(version): increment version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"