Receive message(s) from a queue

This subcommand receives one or more messages from a queue. Three
different methods are supported, read message by message, read until a
given timout or read until a specified date and time. This subcommand
also supports the `--non-blocking` flag.
This commit is contained in:
finga 2021-06-20 01:53:15 +02:00
parent 36d9e8c02c
commit 3572b12a1a
5 changed files with 147 additions and 1 deletions

View file

@ -4,6 +4,7 @@ use clap::Clap;
mod cli;
mod create;
mod info;
mod recv;
mod send;
mod unlink;
@ -17,6 +18,7 @@ fn main() -> Result<()> {
Command::Info(i) => i.run()?,
Command::Unlink(u) => u.run(opts.verbose)?,
Command::Send(s) => s.run(opts.verbose)?,
Command::Recv(r) => r.run(opts.verbose)?,
}
Ok(())