show number of repos
This commit is contained in:
parent
019373f827
commit
def0788698
1 changed files with 3 additions and 2 deletions
|
@ -103,8 +103,9 @@ supported_remote_types = stat "supported remote types" $
|
|||
remote_list :: TrustLevel -> String -> Stat
|
||||
remote_list level desc = stat n $ lift $ do
|
||||
us <- M.keys <$> uuidMap
|
||||
s <- prettyPrintUUIDs n =<< fst <$> trustPartition level us
|
||||
return $ if null s then "none" else '\n':init s
|
||||
rs <- fst <$> trustPartition level us
|
||||
s <- prettyPrintUUIDs n rs
|
||||
return $ if null s then "0" else show (length rs) ++ "\n" ++ init s
|
||||
where
|
||||
n = desc ++ " repositories"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue