Browse Source

refactoring: variable name change, reformating

main
fdai7374 2 years ago
parent
commit
7d9b3d5cb2
  1. 11
      src/builtins/blahaj.rs

11
src/builtins/blahaj.rs

@ -6,7 +6,7 @@ pub struct Blahaj;
impl Builtin for Blahaj {
fn execute(&mut self, _: &mut BuiltinConfig, args: Vec<String>) -> Result<(), ShellError> {
let shonk="
let blahaj = "
((/
,(((/
/((((( (/
@ -25,19 +25,20 @@ impl Builtin for Blahaj {
.. .............,*%%%%#%((((/
**,,,****//*(##((###(#(((
&#(#/#((((((((#";
if args.is_empty() {
println!("{}",shonk);
println!("{}", blahaj);
} else {
if args[0].eq("-t") {
trans_flag(shonk);
trans_flag(blahaj);
}
}
Ok(())
}
}
fn trans_flag(shonk: &str){
for (index, lines) in shonk.lines().enumerate() {
fn trans_flag(blahaj: &str) {
for (index, lines) in blahaj.lines().enumerate() {
if index % 4 == 0 {
println!("{}", lines.truecolor(91, 206, 250));
} else if index % 2 == 0 {

Loading…
Cancel
Save