mqrs/src/main.rs
finga fdacba1eec Create a message queue
The create command creates a new message queue with support of the
typical parameters `mode`, `capacity` and `msgsize`. This command also
supports the global argument `verbose`.
2021-06-14 23:01:14 +02:00

18 lines
246 B
Rust

use anyhow::Result;
use clap::Clap;
mod cli;
mod create;
use cli::{Command, Opts};
fn main() -> Result<()> {
let opts: Opts = Opts::parse();
match opts.command {
Command::Create(c) => c.run(opts.verbose)?,
}
Ok(())
}