From 27f6b0d66df9698ff7de123cc661e4f2dfbc841a Mon Sep 17 00:00:00 2001 From: fdai7375 Date: Mon, 30 Jan 2023 10:03:40 +0100 Subject: [PATCH] feat: add quote to help section --- src/builtins/help.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/builtins/help.rs b/src/builtins/help.rs index 4fbe17e..6486130 100644 --- a/src/builtins/help.rs +++ b/src/builtins/help.rs @@ -5,8 +5,7 @@ pub struct Help; impl Builtin for Help { fn execute(&mut self, _: &mut BuiltinConfig, _: Vec) -> 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(()) } -} \ No newline at end of file +}