post-archiver-utils 0.0.3

A set of utilities for Post Archiver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Display;

use console::style;
use log::info;

pub fn display_metadata(name: &str, metadata: &[(impl AsRef<str>,impl Display)]) {
    info!("# {} #", style(name).bold().green());
    info!("==================================");
    for (key, value) in metadata {
        info!("{} {}", key.as_ref(),style(value).bold().green());
    }
    info!("==================================");
}