pub struct CmdHelps {
helps: HashMap<CmdSrc, CmdHelp>,
}Fields§
§helps: HashMap<CmdSrc, CmdHelp>Implementations§
Source§impl CmdHelps
impl CmdHelps
pub fn new() -> Self
pub fn core_cmd(&self, cmd: &str) -> Command
pub fn core_subc(&self, cmd_path: &[&str]) -> Command
pub fn add_core_cmd(&mut self, cmd_name: &str) -> &mut CmdHelp
pub fn add_core_sub_cmd(&mut self, cmd_path: &[&str]) -> &mut CmdHelp
pub fn add_app_cmd(&mut self, cmd_name: &str) -> &mut CmdHelp
pub fn add_pl_cmd(&mut self, pl_name: &str, cmd_name: &str) -> &mut CmdHelp
pub fn add_aux_cmd(&mut self, ns: &str, cmd_name: &str) -> &mut CmdHelp
pub fn apply_core_cmd_helps<'a>( &'a self, cmd_name: &str, app: Command, ) -> Command
pub fn apply_core_subc_helps<'a>( &'a self, cmd_path: &[&str], app: Command, ) -> Command
pub fn apply_helps<'a>(&'a self, cmd_src: &CmdSrc, app: Command) -> Command
pub fn apply_exts(&mut self, extensions: &Extensions)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdHelps
impl RefUnwindSafe for CmdHelps
impl Send for CmdHelps
impl Sync for CmdHelps
impl Unpin for CmdHelps
impl UnwindSafe for CmdHelps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more