⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

BuiltinCommand

Trait BuiltinCommand 

Source
pub trait BuiltinCommand: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn execute(&self, args: &[String], shell: &Shell) -> CommandResult;
}
Expand description

Shell built-in command

Required Methods§

Source

fn name(&self) -> &str

Get command name

Source

fn description(&self) -> &str

Get command description

Source

fn execute(&self, args: &[String], shell: &Shell) -> CommandResult

Execute the command

Implementors§