Browse Source

feat: add blahaj command

main
fdai7374 2 years ago
parent
commit
380e8913af
  1. 29
      src/builtins/blahaj.rs
  2. 3
      src/builtins/mod.rs

29
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<String>) -> Result<(), ShellError> {
println!("
,(((/
/(((((
((((#(( (//
(((((((. *(((/
/(######/ *((((/
*//%#####((/ ((#((/
,*/********/////////////////(//* (%* ,((##((
,*/((///(//////////((/(///////(/////(////*,(*#((/(/((//////###(###(/(
/(((((((//((///((////((((((/(((((((((((((((((/(((##((#%(##(/((///*(&#(##/
/#((%(#(((((//#((((((((((((((((((((((((#(((((((((((/##(((((//((//* ####(/
(((###(###(#(#####(###############((#((((((((/((//(((#/(///// ,,
,(###%####%&%#############(#(#(####(((((((/(((/////*//,
. .....*#(#######(((###(#(##(##(((/(/(/////,
.. ....,..........,..*#%#######/(
.. .............,*%%%%#%((((/
**,,,****//*(##((###(#(((
&#(#/#((((((((#");
Ok(())
}
}

3
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<Vec<(&str, Box<dyn Builtin>)>> = Lazy::new(|| {
("segfault", Box::new(segfault::Segfault)),
("sus", Box::new(sus::Sus)),
("time", Box::new(time::Time)),
("blahaj", Box::new(blahaj::Blahaj)),
]
});

Loading…
Cancel
Save