summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/Info.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Command/Info.hs b/Command/Info.hs
index e04a72a3c..e489db0ea 100644
--- a/Command/Info.hs
+++ b/Command/Info.hs
@@ -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