Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --human flag in cmd/object-stat #6241

Merged
merged 1 commit into from
Apr 23, 2019

Conversation

vikramsk
Copy link
Contributor

@vikramsk vikramsk commented Apr 21, 2019

Adds support for printing the CumulativeSize in the ipfs object stat command in a human readable form by using the --human flag.

Fixes #6226

@vikramsk vikramsk changed the title Support --human flag in cmd/object-stat Support --human flag in cmd/object-stat Apr 21, 2019
@Stebalien Stebalien requested a review from alanshaw April 21, 2019 00:56
	- add support for printing CumulativeSize in human
	  readable format.
	- add test to validate output.

License: MIT
Signed-off-by: Vikram Sreekumar <vikram1791@gmail.com>
@vikramsk vikramsk force-pushed the fix/cmds/object-stat-human-flag branch from 97d969c to a7ed9d9 Compare April 21, 2019 04:51
@vikramsk
Copy link
Contributor Author

I added a test as well to the PR. Looks like 2 other tests failed in the sharness though. Not sure if my change caused that to break. Any help with this would be appreciated.

@Stebalien
Copy link
Member

No, unfortunately, those are just flaky.

@Stebalien Stebalien merged commit cc2d66f into ipfs:master Apr 23, 2019
@Stebalien
Copy link
Member

(merging as I doubt js-ipfs will object)

@vikramsk vikramsk deleted the fix/cmds/object-stat-human-flag branch April 23, 2019 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Human output for "CumulativeSize" in "ipfs object stat"
2 participants