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

Define the output format of the computation result #6

Closed
Angelmmiguel opened this issue Feb 20, 2022 · 2 comments · Fixed by #12
Closed

Define the output format of the computation result #6

Angelmmiguel opened this issue Feb 20, 2022 · 2 comments · Fixed by #12
Assignees
Labels
feature New feature or request
Milestone

Comments

@Angelmmiguel
Copy link
Owner

I want to add a bit more information about the file size than current du approach. I will explore the different approaches for the ouptut of every entry in the response.

In addition to that, I can also add a summary line with the totals. This line won't be displayed based on an optional parameter.

@Angelmmiguel Angelmmiguel added the feature New feature or request label Feb 20, 2022
@Angelmmiguel Angelmmiguel self-assigned this Feb 20, 2022
@Angelmmiguel
Copy link
Owner Author

Angelmmiguel commented Feb 23, 2022

I'm exploring several formats:

Combine entries, bytes first

bytes (on disk)   path

Example:

564 (4Kb)  ./README.md
300 (4Kb)  ./test.md

Combine entries, disk first

on disk (bytes)   path

Example:

4Kb (564)  ./README.md
4Kb (300)  ./test.md

Separate them

on disk   bytes   path

Example:

4Kb   564   ./README.md
4Kb   300   ./test.md

Include headers

DISK   BYTES   PATH
4Kb    564     ./README.md
4Kb    300     ./test.md

@Angelmmiguel
Copy link
Owner Author

To make it more similar to du output, I'm going to use the latest approach (include headers) and allow to disable them via argument:

> fu ./
DISK   BYTES   PATH
4Kb    564     ./README.md
4Kb    300     ./test.md

> fu --no-header ./
4Kb    564     ./README.md
4Kb    300     ./test.md

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 a pull request may close this issue.

1 participant