From 0eb39a6900974d67dc95789d7f787c49d11508ba Mon Sep 17 00:00:00 2001 From: Adam Sasine Date: Thu, 26 Sep 2024 14:11:23 -0400 Subject: [PATCH] fix: Changed output to stderr for piping purposes Closes #11 --- src/bin/goodboye.rs | 3 ++- src/main.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/goodboye.rs b/src/bin/goodboye.rs index 5fe26be..60af9df 100644 --- a/src/bin/goodboye.rs +++ b/src/bin/goodboye.rs @@ -29,7 +29,8 @@ fn main() { clipboard .set_text(output) .expect("Failed to copy to clipboard."); - println!("Copied to clipboard."); + + eprintln!("Copied to clipboard."); } Err(e) => { if cfg!(target_os = "linux") { diff --git a/src/main.rs b/src/main.rs index 78e565b..6aca02d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,8 @@ fn main() { clipboard .set_text(output) .expect("Failed to copy to clipboard."); - println!("Copied to clipboard."); + + eprintln!("Copied to clipboard."); } Err(e) => { if cfg!(target_os = "linux") {