Implement "list" command.

This commit is contained in:
2021-02-20 18:18:37 +01:00
parent df462caa1b
commit 38738545d6
2 changed files with 70 additions and 4 deletions

View File

@@ -57,10 +57,8 @@ impl Metric {
impl fmt::Display for Metric {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{} created_on:{} updated_on:{}\n{:?}",
write!(f, "{} {:?}",
self.name,
self.created_on,
self.updated_on,
self.config,
)
}