Browse Source

refactoring: format sus command

main
fdai7374 2 years ago
parent
commit
6aea187395
  1. 2
      src/builtins/mod.rs
  2. 6
      src/builtins/sus.rs

2
src/builtins/mod.rs

@ -38,7 +38,7 @@ const BUILTINS: Lazy<Vec<(&str, Box<dyn Builtin>)>> = 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)),
]
});

6
src/builtins/sus.rs

@ -5,7 +5,8 @@ pub struct Sus;
impl Builtin for Sus {
fn execute(&mut self, _: &mut BuiltinConfig, _: Vec<String>) -> Result<(), ShellError> {
println!("
println!(
"
@ -23,7 +24,8 @@ impl Builtin for Sus {
");
"
);
Ok(())
}
}
Loading…
Cancel
Save