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,3 +1,4 @@
use crate::create::Create;
use clap::{crate_authors, crate_version, AppSettings, Clap};
#[derive(Clap, Debug)]
@ -12,4 +13,11 @@ pub struct Opts {
/// Produce verbose output
#[clap(short, long, global = true)]
pub verbose: bool,
#[clap(subcommand)]
pub command: Command,
}
#[derive(Clap, Debug)]
pub enum Command {
Create(Create),
}