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

[#4] feat: add top param to limit the number of entries #18

Merged
merged 1 commit into from
Feb 26, 2022

Conversation

Angelmmiguel
Copy link
Owner

This new optional parameter sorts and limits the entries in the output. This is useful to show only heaviest entries quickly:

$ cargo run -- --top 3 ./
DISK    BYTES   PATH
117M    115M    target
484K    69K     .git
12K     11K     LICENSE

Closes #4

@Angelmmiguel Angelmmiguel added the feature New feature or request label Feb 26, 2022
@Angelmmiguel Angelmmiguel self-assigned this Feb 26, 2022
@Angelmmiguel Angelmmiguel merged commit 3d40fcf into main Feb 26, 2022
@Angelmmiguel Angelmmiguel deleted the 4-add-top-param branch March 5, 2022 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the --top optional parameter
1 participant