Browse Source

feat: add quote to help section

main
fdai7375 2 years ago
parent
commit
bb81a6de4a
  1. 7
      src/builtins/help.rs

7
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,7 +14,9 @@ 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());

Loading…
Cancel
Save