From b8bbf6d556a1aa8d138f6b3ab319e4c12e1f2dbc Mon Sep 17 00:00:00 2001 From: fdai7374 Date: Thu, 26 Jan 2023 00:30:11 +0100 Subject: [PATCH] refactoring: format sus command --- src/builtins/mod.rs | 2 +- src/builtins/sus.rs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 19cb5e3..7b24b29 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -38,7 +38,7 @@ const BUILTINS: Lazy)>> = Lazy::new(|| { ("open", Box::new(open::Open)), ("pwd", Box::new(pwd::Pwd)), ("segfault", Box::new(segfault::Segfault)), - ("sus",Box::new(sus::Sus)), + ("sus", Box::new(sus::Sus)), ] }); diff --git a/src/builtins/sus.rs b/src/builtins/sus.rs index 8eaebe7..cb01dcb 100644 --- a/src/builtins/sus.rs +++ b/src/builtins/sus.rs @@ -5,7 +5,8 @@ pub struct Sus; impl Builtin for Sus { fn execute(&mut self, _: &mut BuiltinConfig, _: Vec) -> Result<(), ShellError> { - println!(" + println!( + " ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣤⣤⣤⣤⣶⣦⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⡿⠛⠉⠙⠛⠛⠛⠛⠻⢿⣿⣷⣤⡀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⠋⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⠈⢻⣿⣿⡄⠀⠀⠀⠀ @@ -23,7 +24,8 @@ impl Builtin for Sus { ⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⠀⣿⣿⡇⠀⢹⣿⡆⠀⠀⠀⣸⣿⠇⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⢿⣿⣦⣄⣀⣠⣴⣿⣿⠁⠀⠈⠻⣿⣿⣿⣿⡿⠏⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠈⠛⠻⠿⠿⠿⠿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ - "); + " + ); Ok(()) } -} \ No newline at end of file +}