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

Implement Download modes #25

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Implement Download modes #25

merged 1 commit into from
Nov 15, 2023

Conversation

tempusfrangit
Copy link
Member

@tempusfrangit tempusfrangit commented Nov 14, 2023

Add the download mode framework with buffer and tar-extract to start. This allows us to expand the modes we want to operate in without impacting defaults or other users.

config/config.go Outdated Show resolved Hide resolved
download/client.go Outdated Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
download/buffer.go Outdated Show resolved Hide resolved
@tempusfrangit tempusfrangit force-pushed the download-modes branch 3 times, most recently from 5268af2 to c03670c Compare November 15, 2023 20:31
pkg/optname/names.go Outdated Show resolved Hide resolved
Imeplement a download modes framework that allows specifying a mechanism
to download. This commit implements "buffer" and "tar-extract" which mirror
the original behaviors of pget. The '-x'/'--extract' option automatically
sets the `tar-extract` mode.

tar-extract mode simply wraps the buffer mode for now.

Behavior and CLI options are not modified in this commit
@tempusfrangit tempusfrangit merged commit 9581b69 into main Nov 15, 2023
2 checks passed
@tempusfrangit tempusfrangit deleted the download-modes branch November 15, 2023 21:22
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.

2 participants