maxsize overview display and --json support
This commit is contained in:
parent
016edcf437
commit
99514f9d18
8 changed files with 109 additions and 27 deletions
|
@ -573,7 +573,8 @@ reposizes_stats count desc m = stat desc $ nojson $ do
|
|||
let maxlen = maximum (map (length . snd) l)
|
||||
descm <- lift Remote.uuidDescriptions
|
||||
-- This also handles json display.
|
||||
s <- lift $ Remote.prettyPrintUUIDsWith (Just "size") desc descm (Just . show) $
|
||||
s <- lift $ Remote.prettyPrintUUIDsWith (Just "size") desc descm
|
||||
(\sz -> Just $ show sz ++ ": ") $
|
||||
map (\(u, sz) -> (u, Just $ mkdisp sz maxlen)) l
|
||||
return $ if count
|
||||
then countRepoList (length l) s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue