finga
fdacba1eec
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`.
18 lines
246 B
Rust
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(())
|
|
}
|