mirror of
https://github.com/orhun/systeroid
synced 2024-10-04 14:39: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())?;
|
||||
}
|
||||
DisplayType::Default => {
|
||||
writeln!(
|
||||
output,
|
||||
"{} {} {}",
|
||||
self.get_colored_name(config),
|
||||
"=".color(config.default_color),
|
||||
self.value.bold(),
|
||||
)?;
|
||||
for value in self.value.lines() {
|
||||
writeln!(
|
||||
output,
|
||||
"{} {} {}",
|
||||
self.get_colored_name(config),
|
||||
"=".color(config.default_color),
|
||||
value.bold(),
|
||||
)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue