use crate::{Command, CommandResult, Hackshell, error::HackshellError};
pub struct Exit {}
impl Command for Exit {
fn commands(&self) -> &'static [&'static str] {
&["exit"]
}
fn help(&self) -> &'static str {
"Exits the program"
}
fn category(&self) -> &'static str {
"Shell"
}
fn run(&self, _: &Hackshell, _cmd: &[&str]) -> CommandResult {
Err(HackshellError::Exit.into())
}
}