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

Add back the get --single functionality that has been lost during a refactoring #1070

Merged
merged 4 commits into from
Jun 6, 2023

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Jun 5, 2023

Not sure if this should even be the same command. Maybe get blob or get-blob? But we have a bit of a feature explosion.

get (hash / ticket) x (collection / blob)

In any case, the single code path is now separate, which makes things simpler. One question I have is how much, if any, progress we should have when getting single or collection to stdout.

If you just get to stdout without redirecting, the stderr progress and stdout content get mixed and will look very confusing...

both stdout and file output, but not resume
@rklaehn rklaehn marked this pull request as ready for review June 5, 2023 11:28
@rklaehn rklaehn requested review from dignifiedquire and flub June 5, 2023 14:29
src/main.rs Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
@flub
Copy link
Contributor

flub commented Jun 5, 2023

wow, everything is green?!?

@dignifiedquire dignifiedquire linked an issue Jun 5, 2023 that may be closed by this pull request
@rklaehn rklaehn merged commit 3831e64 into x-hp Jun 6, 2023
@rklaehn rklaehn deleted the x-hp-single-debug branch June 6, 2023 06:40
matheus23 pushed a commit that referenced this pull request Nov 14, 2024
…efactoring (#1070)

* fix: add handling of --single parameter for stdout target

* fix: add handling of --single parameter for dir target

* test: add tests for --single paramter

both stdout and file output, but not resume

* fix: allow using Blake3Cid in tests even for the MSRV test
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.

CLI get --single does not work
2 participants