Skip to content

Commit 0eb39a6

Browse files
committed
fix: Changed output to stderr for piping purposes
Closes #11
1 parent d4b946c commit 0eb39a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/bin/goodboye.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fn main() {
2929
clipboard
3030
.set_text(output)
3131
.expect("Failed to copy to clipboard.");
32-
println!("Copied to clipboard.");
32+
33+
eprintln!("Copied to clipboard.");
3334
}
3435
Err(e) => {
3536
if cfg!(target_os = "linux") {

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ fn main() {
3737
clipboard
3838
.set_text(output)
3939
.expect("Failed to copy to clipboard.");
40-
println!("Copied to clipboard.");
40+
41+
eprintln!("Copied to clipboard.");
4142
}
4243
Err(e) => {
4344
if cfg!(target_os = "linux") {

0 commit comments

Comments
 (0)