|
|
@ -5,8 +5,7 @@ pub struct Help; |
|
|
|
|
|
|
|
impl Builtin for Help {
|
|
|
|
fn execute(&mut self, _: &mut BuiltinConfig, _: Vec<String>) -> Result<(), ShellError> {
|
|
|
|
let commands =
|
|
|
|
"cd changes current working directory
|
|
|
|
let commands = "cd changes current working directory
|
|
|
|
change-prompt changes prompt style (default, bashlike, simpledirectory)
|
|
|
|
exit exits the shell
|
|
|
|
fetch prints out system information
|
|
|
@ -15,11 +14,13 @@ impl Builtin for Help { |
|
|
|
open shows content of files
|
|
|
|
pwd shows path to current working directory
|
|
|
|
segfault exit but through segfault
|
|
|
|
sus shows amogus";
|
|
|
|
sus shows amogus
|
|
|
|
quote prints a random quote
|
|
|
|
";
|
|
|
|
|
|
|
|
for line in commands.lines() {
|
|
|
|
println!("{}", line.trim_start());
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|