-
Notifications
You must be signed in to change notification settings - Fork 72
support for --hash and --raw-leaves arguments #26
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
Comments
Glad you got it working! There are several requests that need additional parameters like your use case, but most users would not need them. This might require adding a method like |
The API actually supports it:
So, the quick and dirty way would be your first suggestion, just add a new request type I don't think that would be sustainable. What about extending the trait ApiRequest with optional arguments? |
I think we could support this. There are already some ApiRequest implementations that have optional arguments. Maybe we could have an |
I agree, I was referring to this implementation of it -- sorry for the confusion. An add with options sounds like a good idea. The add request struct could implement default and the add function could just wrap the with options variant. |
The go IPFS API implementation of add uses functions that modify the request itself, and offers a few that are standard. Would that be something better to do here, since the api is technically v0? |
I've successfully used your examples, but what I'd like to do is the equivalent to
Is that supported? I couldn't find anything in the docs.
The text was updated successfully, but these errors were encountered: