Repository navigation
Conversation
…s from the 'watcloud du' command section.
Contributor
|
I will try to get to this on Sunday |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resolves #21, needs more work on final UI design
Adds
watcloud duto watcloud-cli. Opens an interactive, sorted view of user's home directory and helps users find what is consuming their storage quota.Top of the interface shows user's current directory path, total quota, etc at any depth. All entries are sorted largest first and show their size and percentage of the home quota. Directory sizes come from CephFS metadata instead of recursive filesystem scans.
The command keeps browsing within the home directory and its mount without following symlinks. It also handles unavailable sizes, unreadable entries, and missing/unlimited quotas. More error handling were tested, but not committed.
The UI is currently built with Bubble Tea, and its kept minimalistic since we probably need to unify the CLI UI design altogether anyways afterwards.
Tests Performed
No lagging / stuttering while running
./watcloud duon own directory.Allows
q Quitwhen file loading is stuck.Uncommitted
go testpassed (performance on larger directories, error handling, etc):benchmark_test.gobrowser_test.godu_test.goChecklist