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

[#1] feat: use globs and paths with folders to list multiple files #13

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

Angelmmiguel
Copy link
Owner

@Angelmmiguel Angelmmiguel commented Feb 24, 2022

Allow the CLI to receive files, globs and folders and iterate the different paths. This required to change the main structure from FileSize to vec<FileSize>. This will allow future improvements such as sorting and top.

> cargo run -- "./"
DISK    BYTES   PATH
364K    56K     .git
4K      263B    .github
4K      131B    .gitignore
8K      6K      Cargo.lock
4K      333B    Cargo.toml
12K     11K     LICENSE
4K      41B     README.md
12K     3K      src
106M    104M    target

> cargo run -- "."
DISK    BYTES   PATH
106M    104M    .

Closes #1

@Angelmmiguel Angelmmiguel added the feature New feature or request label Feb 24, 2022
@Angelmmiguel Angelmmiguel self-assigned this Feb 24, 2022
@Angelmmiguel Angelmmiguel merged commit 26e9c2a into main Feb 24, 2022
@Angelmmiguel Angelmmiguel linked an issue Feb 24, 2022 that may be closed by this pull request
@Angelmmiguel Angelmmiguel deleted the 1-allow-multiple-format-and-files 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.

Allow multiple argument formats
1 participant