Browse Source

feat: add quote to help section

main
fdai7375 2 years ago
committed by fdai7451
parent
commit
27f6b0d66d
  1. 9
      src/builtins/help.rs

9
src/builtins/help.rs

@ -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(())
}
}
}
Loading…
Cancel
Save