info remove: show trust level

This commit is contained in:
Joey Hess 2015-04-05 13:51:01 -04:00
parent 9c31b91c89
commit e3ea9d21fc

View file

@ -198,6 +198,7 @@ remote_fast_stats r = map (\s -> s r)
[ remote_name
, remote_description
, remote_uuid
, remote_trust
, remote_cost
, remote_type
]
@ -266,6 +267,10 @@ remote_uuid :: Remote -> Stat
remote_uuid r = simpleStat "uuid" $ pure $
fromUUID $ Remote.uuid r
remote_trust :: Remote -> Stat
remote_trust r = simpleStat "trust" $ lift $
showTrustLevel <$> lookupTrust (Remote.uuid r)
remote_cost :: Remote -> Stat
remote_cost r = simpleStat "cost" $ pure $
show $ Remote.cost r