Compare commits
2 Commits
aae9189ed8
...
249688dfc4
Author | SHA1 | Date | |
---|---|---|---|
|
249688dfc4 | ||
404e393b97 |
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.0.4] - 2025-08-03
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- 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
|
||||||
|
@@ -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" }
|
||||||
|
@@ -123,6 +123,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
}
|
}
|
||||||
Commands::Paste {} => {
|
Commands::Paste {} => {
|
||||||
let mut stdout = tokio::io::stdout();
|
let mut stdout = tokio::io::stdout();
|
||||||
|
|
||||||
if let Ok(remote_host) = std::env::var("VOIDPIN_REMOTE") {
|
if let Ok(remote_host) = std::env::var("VOIDPIN_REMOTE") {
|
||||||
let output = state.remote_copier(&remote_host).paste().await?;
|
let output = state.remote_copier(&remote_host).paste().await?;
|
||||||
|
|
||||||
|
@@ -58,8 +58,11 @@ impl RemoteCopier {
|
|||||||
tracing::info!("sending paste request");
|
tracing::info!("sending paste request");
|
||||||
let resp = client.paste(PasteRequest {}).await?;
|
let resp = client.paste(PasteRequest {}).await?;
|
||||||
|
|
||||||
tracing::info!("received paste response");
|
|
||||||
let output = resp.into_inner().content;
|
let output = resp.into_inner().content;
|
||||||
|
tracing::info!(
|
||||||
|
content = std::str::from_utf8(&output).unwrap_or_default(),
|
||||||
|
"received paste response"
|
||||||
|
);
|
||||||
|
|
||||||
Ok(output)
|
Ok(output)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user