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 offset option to cat command #4538

Merged
merged 2 commits into from
Jan 2, 2018
Merged

Conversation

frrist
Copy link
Member

@frrist frrist commented Jan 2, 2018

No description provided.

@ghost ghost assigned frrist Jan 2, 2018
@ghost ghost added the status/in-progress In progress label Jan 2, 2018
@frrist
Copy link
Member Author

frrist commented Jan 2, 2018

Discussed in issue #4085 & #3578

if err != nil {
return nil, 0, err
}
offset = offset - count
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt this always result in offset being 0?

test_cmp expected actual
'

test_expect_success "ipfs cat multipule hashes with offset succeeds" '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo

@whyrusleeping
Copy link
Member

a couple things, then LGTM.

@frrist frrist force-pushed the feat/command/cat-offset branch 2 times, most recently from bc17543 to 2fcfbd8 Compare January 2, 2018 18:46
Allow an offset option to be passed to cat command

License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We'll also want a length option (so we can read a chunk) but we can do that later.

@whyrusleeping
Copy link
Member

right, this closes #3578, but i think for #4085 we need a --length flag as well. I'm fine having that be a separate PR

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.

3 participants