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`.
This commit is contained in:
finga 2021-06-14 03:06:23 +02:00
parent 2b96bcc562
commit fdacba1eec
5 changed files with 101 additions and 3 deletions

View file

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