info remove: show trust level
This commit is contained in:
parent
9c31b91c89
commit
e3ea9d21fc
1 changed files with 5 additions and 0 deletions
|
@ -198,6 +198,7 @@ remote_fast_stats r = map (\s -> s r)
|
||||||
[ remote_name
|
[ remote_name
|
||||||
, remote_description
|
, remote_description
|
||||||
, remote_uuid
|
, remote_uuid
|
||||||
|
, remote_trust
|
||||||
, remote_cost
|
, remote_cost
|
||||||
, remote_type
|
, remote_type
|
||||||
]
|
]
|
||||||
|
@ -266,6 +267,10 @@ remote_uuid :: Remote -> Stat
|
||||||
remote_uuid r = simpleStat "uuid" $ pure $
|
remote_uuid r = simpleStat "uuid" $ pure $
|
||||||
fromUUID $ Remote.uuid r
|
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 :: Remote -> Stat
|
||||||
remote_cost r = simpleStat "cost" $ pure $
|
remote_cost r = simpleStat "cost" $ pure $
|
||||||
show $ Remote.cost r
|
show $ Remote.cost r
|
||||||
|
|
Loading…
Add table
Reference in a new issue