Styled name and revision in content listing

This commit is contained in:
2023-06-16 00:10:20 +02:00
parent 11b233b642
commit 014fca2169
5 changed files with 17 additions and 7 deletions

View File

@@ -22,6 +22,7 @@
* SOFTWARE.
*/
use console::style;
use serde::{Deserialize, Serialize};
use crate::model::{
@@ -179,7 +180,11 @@ impl FormEntryContainer for DataForm {
impl Listable for DataForm {
fn to_listed_string(&self) -> String {
format!("Formular '{}' in Revision '{}'", self.name, self.revision)
format!(
"Formular '{}' in Revision '{}'",
style(&self.name).yellow(),
style(&self.revision).yellow()
)
}
}