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

Pull only a single file or a whole folder. #22

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

apraga
Copy link

@apraga apraga commented Jun 16, 2024

Fixes #13 .

This is set using -l or --limit flag.
If a single file is given, it should be the full path (from the repo) otherwise it won't match.
If a directory is given, match all files and subdirectories. If a subdirectory is given, it should have all parents from the repo root.

As a side note, I've split the generation of a download queue in pull function into a separate function for readability.

@vsbuffalo this is a draft to have your opinion on the design and the code.
Integration tests are coming ! I've only ran some tests manually with static url.

Note: maybe --all should be renamed if this is accepted to avoid confusion.

Thanks,

This is set using -l or --limit flag.
If a single file is given, it should be the full path (from the repo)
otherwise it won't match.
If a directory is given, match all files and subdirectories. If a
subdirectory is given, it should have all parents from the repo root.

Split the generation of a download queue in `pull` function into a
separate function for readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature : pull only parts of a repository
1 participant