Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

cli: add --human flag to repo stat & stats repo #2102

Closed
wants to merge 2 commits into from

Commits on Jun 1, 2019

  1. cli: add --human flag to repo stat & stats repo

    - Added a `humanize` object to /src/cli/utils with `Bytes` method
    that takes bytes and returns Human readable size.
    - Used `humanize.Bytes()` method in /commands/stats/repo and
    /commands/repo/stat if `--human` flag is passed.
    
    License: MIT
    Signed-off-by: Chirag Shinde <shinde.chirag2204@gmail.com>
    chirag-shinde committed Jun 1, 2019
    Configuration menu
    Copy the full SHA
    92f8d4c View commit details
    Browse the repository at this point in the history
  2. fix(cli): add human flag to repo stat & stats repo

    - Use filesize to return human readable sizes.
    - handler now returns stats instead of printing them.
    
    License: MIT
    Signed-off-by: Chirag Shinde <shinde.chirag2204@gmail.com>
    chirag-shinde committed Jun 1, 2019
    Configuration menu
    Copy the full SHA
    69523e8 View commit details
    Browse the repository at this point in the history