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

Non-interactive tree output #264

Open
multimeric opened this issue Sep 20, 2024 · 2 comments
Open

Non-interactive tree output #264

multimeric opened this issue Sep 20, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@multimeric
Copy link

By default dua some_dir reports a flat file hierarchy. However, it would be useful to generate a tree, but non-interactively. My use case is sharing a disk usage report with someone, which can't be done in interactive mode, and the current behaviour isn't informative enough.

I wonder if a --depth <int> flag could be added to the uninteractive command that allows a tree output? It should default to 1 which is the current behaviour.

@Byron
Copy link
Owner

Byron commented Sep 20, 2024

Thanks for the suggestion! It seems to me that PDU might be exactly what you want.

It's an auto-tree, essentially, and it's faster than dua as well.

However, I think the particular implementation suggested here seems like a good fit and nice to have, so let's keep it in case anyone comes along to implement it.

@Byron Byron added enhancement New feature or request help wanted Extra attention is needed labels Sep 20, 2024
@multimeric
Copy link
Author

Thanks for the recommendation. This isn't a good reason, but we use dua in our HPC facility and for admin + docs reasons, it would be easier to have one tool that does both the interactive stuff and uninteractive reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants