From bb3c626dd46a1d5562a591197a2c919fdc69ff68 Mon Sep 17 00:00:00 2001 From: fdai7374 Date: Fri, 3 Feb 2023 19:49:48 +0100 Subject: [PATCH] feat: add blahaj command --- src/builtins/blahaj.rs | 29 +++++++++++++++++++++++++++++ src/builtins/mod.rs | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 src/builtins/blahaj.rs diff --git a/src/builtins/blahaj.rs b/src/builtins/blahaj.rs new file mode 100644 index 0000000..d6c207f --- /dev/null +++ b/src/builtins/blahaj.rs @@ -0,0 +1,29 @@ +use crate::builtins::{Builtin, BuiltinConfig}; +use crate::error::ShellError; + +pub struct Blahaj; + +impl Builtin for Blahaj { + fn execute(&mut self, _: &mut BuiltinConfig, _: Vec) -> Result<(), ShellError> { + println!(" + + ,(((/ + /((((( + ((((#(( (// + (((((((. *(((/ + /(######/ *((((/ + *//%#####((/ ((#((/ + ,*/********/////////////////(//* (%* ,((##(( + ,*/((///(//////////((/(///////(/////(////*,(*#((/(/((//////###(###(/( + /(((((((//((///((////((((((/(((((((((((((((((/(((##((#%(##(/((///*(&#(##/ + /#((%(#(((((//#((((((((((((((((((((((((#(((((((((((/##(((((//((//* ####(/ + (((###(###(#(#####(###############((#((((((((/((//(((#/(///// ,, + ,(###%####%&%#############(#(#(####(((((((/(((/////*//, + . .....*#(#######(((###(#(##(##(((/(/(/////, + .. ....,..........,..*#%#######/( + .. .............,*%%%%#%((((/ + **,,,****//*(##((###(#((( + &#(#/#((((((((#"); + Ok(()) + } + } \ No newline at end of file diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 21072c2..6aacd58 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -15,6 +15,8 @@ mod quote; mod segfault; mod sus; mod time; +mod blahaj; + pub struct BuiltinConfig { pub prompt_style: PromptStyle, @@ -47,6 +49,7 @@ const BUILTINS: Lazy)>> = Lazy::new(|| { ("segfault", Box::new(segfault::Segfault)), ("sus", Box::new(sus::Sus)), ("time", Box::new(time::Time)), + ("blahaj", Box::new(blahaj::Blahaj)), ] });