Map pulse to timestamp
This commit is contained in:
@@ -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(())
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user