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::{Listable, Ordner, Sortable};
@@ -56,7 +57,8 @@ impl Listable for PropertyCatalogue {
fn to_listed_string(&self) -> String {
format!(
"Merkmalskatalog '{}' in Revision '{}'",
self.name, self.revision
style(&self.name).yellow(),
style(&self.revision).yellow()
)
}
}