-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
79bd293
to
6e1e501
Compare
6e1e501
to
0fc19dd
Compare
Rebased on master and fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @MichaelMure, thanks for this. I left some comments. This library has many dozens of golint warnings and it would be nice if the files touched by the PR did not show any more issues. Since this is the core interface, it is specially important to have amazing developer docs here.
@hsanjuan I'm torn on this one, I suppose mainly due to a question of taste. At the moment in the other namespace ( Adding I know it's a hard change but shouldn't that problem be addressed now rather than later ? Maybe instead of having options exposed as WDYT ? Maybe @Stebalien would like to step in here ? |
Otherwise, I agree about the documentation. |
I'm a bit lost. I think it's ok having two options ( type PinLsSettings struct {
typeSettings
} etc. in the case of object, |
@hsanjuan Sorry to ask you this but could you take over this one? I'll probably be unavailable for a week+. |
I don't mind taking over, but my availability is not much better than yours :/ |
@hsanjuan I mean if you could shuffle the code around the way you want it, I can deal with the ground work around (doc and updating ipfs/kubo#6774) |
ok, I have come to a better understanding here. Duplicating code is the only way I see of not making the core API option parsing even more convoluted than it already is. @Stebalien LGTM. |
@MichaelMure but do fix the docstrings please... |
@hsanjuan thanks for the help :) |
…nispinned add Pin.IsPinned(..) This commit was moved from ipfs/interface-go-ipfs-core@ee0d435
…nispinned add Pin.IsPinned(..) This commit was moved from ipfs/interface-go-ipfs-core@ee0d435
…nispinned add Pin.IsPinned(..) This commit was moved from ipfs/interface-go-ipfs-core@ee0d435
This PR add the following function to the Pin API:
This is needed to ultimately implement
ipfs pin ls <cid>
.To do so, it was also needed to migrate the
PinLsOptions
into their own namespace.Note: to avoid conflicts, this PR is chained with #49 so the diff here will include both until #49 is merged.