Skip to content

Commit

Permalink
Merge pull request #110 from perryrh0dan/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
perryrh0dan authored Jan 30, 2021
2 parents cf27e1e + e139bde commit a5b9383
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <thomaspoehlmann96@googlemail.com>"]
edition = "2018"
license = "MIT"
Expand Down
8 changes: 5 additions & 3 deletions src/action/template/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ 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);
exit(1);
}
};

out::success::template_tested()
out::info::display_template(&template);

out::success::template_tested();
}
}
2 changes: 1 addition & 1 deletion src/migration/two.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a5b9383

Please sign in to comment.