Skip to content

Commit e97e522

Browse files
authored
Merge pull request #5 from umpire274/v0.3.1
Release v0.3.1 – Terminal UI copy's output message, cleaning screen and improvement performance
2 parents 278c19b + 6962c7e commit e97e522

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ All notable changes to the `rbackup` project will be documented in this file.
66

77
---
88

9+
## [v0.3.1] - 2025-09-12
10+
11+
### 🚀 Improvements
12+
13+
- Cleaning the screen in case the copy message took more than one row in output
14+
- Changed the output message when copying to correct punctuation
15+
16+
### 🔧 Code Cleanup
17+
18+
- Deleted delay between one copy and the next one
19+
- Deleted unused create imports
20+
21+
---
22+
923
## [v0.3.0] - 2025-09-10
1024

1125
### 🚀 Features

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rbackup"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition = "2021"
55
license = "MIT"
66
description = "Incremental, cross-platform and multithreaded backup tool written in Rust"

src/ui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn draw_ui(copied: f32, progress_row: u16, total: f32, msg: &Messages) {
1717

1818
let bar = format!("[{}{}]", "█".repeat(filled), "░".repeat(empty));
1919
let progress_line = format!(
20-
"{}: file {}/{} ({:.0}%) {}",
20+
"{} file {}/{} ({:.0}%) {}",
2121
msg.copy_progress, copied as usize, total as usize, percent, bar
2222
);
2323

src/utils.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ use std::{
1515
atomic::{AtomicUsize, Ordering},
1616
Arc, Mutex,
1717
},
18-
thread::sleep,
19-
time::Duration,
2018
};
2119
use walkdir::WalkDir;
2220

@@ -125,6 +123,13 @@ pub fn copy_incremental(
125123
}
126124
};
127125

126+
execute!(
127+
stdout(),
128+
MoveTo(0, progress_row - 2),
129+
Clear(ClearType::CurrentLine),
130+
ResetColor
131+
)?;
132+
128133
execute!(
129134
stdout(),
130135
MoveTo(0, progress_row - 3),
@@ -144,8 +149,6 @@ pub fn copy_incremental(
144149
total_files as f32,
145150
msg,
146151
);
147-
148-
sleep(Duration::from_millis(40));
149152
}
150153

151154
Ok((

0 commit comments

Comments
 (0)