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:
parent
2b96bcc562
commit
fdacba1eec
5 changed files with 101 additions and 3 deletions
14
src/main.rs
14
src/main.rs
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue