bold names

This commit is contained in:
Mateusz Faderewski 2024-09-27 20:44:16 +02:00
parent 3c9f42d384
commit 2f79863150

View File

@ -867,7 +867,7 @@ fn handle_sd_command(connection: Connection, command: &SDCommands) -> Result<(),
sc64::ff::EntryInfo::Directory => ("/".to_owned() + &name).bright_blue(), sc64::ff::EntryInfo::Directory => ("/".to_owned() + &name).bright_blue(),
sc64::ff::EntryInfo::File { size: _ } => name.bright_green(), sc64::ff::EntryInfo::File { size: _ } => name.bright_green(),
}; };
println!("{info} {datetime} | {name}"); println!("{info} {datetime} | {}", name.bold());
} }
} }
SDCommands::Stat { path } => { SDCommands::Stat { path } => {
@ -880,7 +880,7 @@ fn handle_sd_command(connection: Connection, command: &SDCommands) -> Result<(),
sc64::ff::EntryInfo::Directory => ("/".to_owned() + &name).bright_blue(), sc64::ff::EntryInfo::Directory => ("/".to_owned() + &name).bright_blue(),
sc64::ff::EntryInfo::File { size: _ } => name.bright_green(), sc64::ff::EntryInfo::File { size: _ } => name.bright_green(),
}; };
println!("{info} {datetime} | {name}"); println!("{info} {datetime} | {}", name.bold());
} }
SDCommands::Move { src, dst } => { SDCommands::Move { src, dst } => {
ff.rename(src, dst)?; ff.rename(src, dst)?;