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};
@@ -59,7 +60,8 @@ impl Listable for DataCatalogue {
fn to_listed_string(&self) -> String {
format!(
"Datenkatalog '{}' in Revision '{}'",
self.name, self.revision
style(&self.name).yellow(),
style(&self.revision).yellow()
)
}
}