2 Commits

Author SHA1 Message Date
d1fbc70b40 chore(release): v0.0.4 (#22)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(release): 0.0.4

Co-authored-by: cuddle-please <bot@cuddle.sh>
Reviewed-on: #22
2025-08-03 14:37:13 +02:00
f060e9d2ca feat: pipe output
All checks were successful
continuous-integration/drone/push Build is passing
2025-08-03 14:32:52 +02:00
4 changed files with 17 additions and 4 deletions

View File

@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.0.4] - 2025-08-03
### Added
- pipe output
- replace bytes with string to avoid endianness
- sanitise output
- replace output spawn with native tokio method
### Other
- add print to output from paste
## [0.0.3] - 2025-08-03 ## [0.0.3] - 2025-08-03
### Added ### Added

View File

@@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2" resolver = "2"
[workspace.package] [workspace.package]
version = "0.0.3" version = "0.0.4"
[workspace.dependencies] [workspace.dependencies]
voidpin = { path = "crates/voidpin" } voidpin = { path = "crates/voidpin" }

View File

@@ -54,13 +54,15 @@ impl LocalCopier {
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
let paste_process = { let paste_process = {
tokio::process::Command::new("pbpaste") tokio::process::Command::new("pbpaste")
.stdin(Stdio::piped()) .stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()? .spawn()?
}; };
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
let mut paste_process = { let mut paste_process = {
tokio::process::Command::new("wl-paste") tokio::process::Command::new("wl-paste")
.stdin(Stdio::piped()) .stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()? .spawn()?
}; };
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]

View File

@@ -68,7 +68,7 @@ async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt() tracing_subscriber::fmt()
.with_env_filter( .with_env_filter(
EnvFilter::builder() EnvFilter::builder()
.with_default_directive("error".parse().unwrap()) //.with_default_directive("error".parse().unwrap())
.from_env_lossy(), .from_env_lossy(),
) )
.with_writer(std::io::stderr) .with_writer(std::io::stderr)