Map pulse to timestamp

This commit is contained in:
Dominik Werder
2021-09-13 21:51:46 +02:00
parent 6fc2ba4c65
commit 8f33b894a8
8 changed files with 381 additions and 30 deletions

View File

@@ -97,6 +97,12 @@ async fn go() -> Result<(), Error> {
SubCmd::Zmtp(zmtp) => {
netfetch::zmtp::zmtp_client(&zmtp.addr).await?;
}
SubCmd::Logappend(k) => {
let jh = tokio::task::spawn_blocking(move || {
taskrun::append::append(&k.dir, std::io::stdin(), std::io::stderr()).unwrap();
});
jh.await?;
}
SubCmd::Test => (),
}
Ok(())

View File

@@ -16,6 +16,7 @@ pub enum SubCmd {
Client(Client),
GenerateTestData,
Zmtp(Zmtp),
Logappend(Logappend),
Test,
}
@@ -78,3 +79,9 @@ pub struct Zmtp {
#[clap(long)]
pub addr: String,
}
#[derive(Debug, Clap)]
pub struct Logappend {
#[clap(long)]
pub dir: String,
}