Skip to content

Commit

Permalink
Add punctuation to output
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Aug 12, 2023
1 parent 8b1a824 commit 1b1492b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/bin/default/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ fn main() {
if current_link_path.exists() {
remove_symlink_dir(&current_link_path).unwrap_or_else(|_| {
remove_dir_all(&current_link_path).expect(&format!(
"cannot remove current directory for {}",
"cannot remove current directory for {}.",
candidate
))
})
}
println!(
"setting {} {} as the {} version for all shells",
"setting {} {} as the {} version for all shells.",
&candidate.bold(),
&version.bold(),
"default".italic()
Expand All @@ -56,9 +56,9 @@ fn main() {
let version_path_string = version_path.into_os_string().into_string().unwrap();
version_paths.push(version_path_string);

copy_items(&version_paths, &tmp_dir, &options).expect("cannot copy to tmp folder");
copy_items(&version_paths, &tmp_dir, &options).expect("cannot copy to tmp folder.");
let tmp_version_path = tmp_dir.join(&version);
fs::rename(tmp_version_path, current_link_path).expect("cannot rename copied folder");
fs::rename(tmp_version_path, current_link_path).expect("cannot rename copied folder.");
let error_message = format!(
"cannot create {} symlink, fall back to copy!",
"current".italic()
Expand Down
6 changes: 3 additions & 3 deletions src/bin/uninstall/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn main() {
if (version_path == resolved_link_path) && force {
remove_symlink_dir(&current_link_path).unwrap_or_else(|_| {
remove_dir_all(current_link_path.to_owned()).expect(&format!(
"cannot remove current directory for {}",
"cannot remove current directory for {}.",
candidate
))
});
Expand All @@ -72,7 +72,7 @@ fn main() {

remove_dir_all(version_path)
.map(|_| {
println!("removed {} {}", candidate.bold(), version.bold());
println!("removed {} {}.", candidate.bold(), version.bold());
})
.expect("panic! could not delete directory");
.expect("panic! could not delete directory.");
}

0 comments on commit 1b1492b

Please sign in to comment.