mirror of
https://github.com/orhun/systeroid
synced 2024-07-09 04:06:06 +00:00
feat(sysctl): improve printing the multiline values
This commit is contained in:
parent
affd73efc7
commit
86f2be4fae
|
@ -118,13 +118,15 @@ impl Parameter {
|
||||||
write!(output, "{}", self.value.bold())?;
|
write!(output, "{}", self.value.bold())?;
|
||||||
}
|
}
|
||||||
DisplayType::Default => {
|
DisplayType::Default => {
|
||||||
writeln!(
|
for value in self.value.lines() {
|
||||||
output,
|
writeln!(
|
||||||
"{} {} {}",
|
output,
|
||||||
self.get_colored_name(config),
|
"{} {} {}",
|
||||||
"=".color(config.default_color),
|
self.get_colored_name(config),
|
||||||
self.value.bold(),
|
"=".color(config.default_color),
|
||||||
)?;
|
value.bold(),
|
||||||
|
)?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user