pub struct HelpCommand;
Expand description
Built-in help command (execution handled by registry internally)
Implementations§
Source§impl HelpCommand
impl HelpCommand
Trait Implementations§
Source§impl Command for HelpCommand
impl Command for HelpCommand
fn name(&self) -> &str
fn aliases(&self) -> &[&str]
fn help(&self) -> Option<&str>
fn validate(&self, args: &[String]) -> Result<(), String>
fn execute(&self, _args: &[String])
Source§fn execute_with(&self, args: &[String], registry: &CommandRegistry)
fn execute_with(&self, args: &[String], registry: &CommandRegistry)
Execute with access to the registry context. Default delegates to
execute
.
Commands that need registry access (e.g., help
) can override this.Source§fn required_caps(&self) -> &[&str]
fn required_caps(&self) -> &[&str]
Capability requirements for visibility/authorization.
The parent application grants capabilities at runtime on the registry.
Default: no requirements.
Auto Trait Implementations§
impl Freeze for HelpCommand
impl RefUnwindSafe for HelpCommand
impl Send for HelpCommand
impl Sync for HelpCommand
impl Unpin for HelpCommand
impl UnwindSafe for HelpCommand
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