This commit is contained in:
parent
9c1dca651b
commit
e5a15dfb49
1 changed files with 20 additions and 15 deletions
35
src/print.rs
35
src/print.rs
|
@ -8,21 +8,26 @@ pub fn print_config(conf: &InstallConfig) {
|
||||||
let mut root_info = Tree::new();
|
let mut root_info = Tree::new();
|
||||||
|
|
||||||
let mut drive_info = Tree::new();
|
let mut drive_info = Tree::new();
|
||||||
drive_info.add_str(format!(
|
|
||||||
"💾 {} {}",
|
if let Some(disk) = conf.drive.disk.as_ref() {
|
||||||
conf.drive.boot.as_ref().unwrap().paint(Color::Red),
|
drive_info.add_str(format!("🖴 {}", disk.paint(Color::Red)));
|
||||||
"[EFI]".paint(Color::Blue)
|
} else {
|
||||||
));
|
drive_info.add_str(format!(
|
||||||
drive_info.add_str(format!(
|
"💾 {} {}",
|
||||||
"{} {} {}",
|
conf.drive.boot.as_ref().unwrap().paint(Color::Red),
|
||||||
if conf.drive.encryption.is_some() {
|
"[EFI]".paint(Color::Blue)
|
||||||
"🔒"
|
));
|
||||||
} else {
|
drive_info.add_str(format!(
|
||||||
"💾"
|
"{} {} {}",
|
||||||
},
|
if conf.drive.encryption.is_some() {
|
||||||
conf.drive.root.as_ref().unwrap().paint(Color::Red),
|
"🔒"
|
||||||
"[ROOT]".paint(Color::Blue)
|
} else {
|
||||||
));
|
"💾"
|
||||||
|
},
|
||||||
|
conf.drive.root.as_ref().unwrap().paint(Color::Red),
|
||||||
|
"[ROOT]".paint(Color::Blue)
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
root_info.add_tree("💾 Drive Selection", drive_info);
|
root_info.add_tree("💾 Drive Selection", drive_info);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue