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

added block cmd #165

Merged
merged 8 commits into from
Oct 14, 2014
Merged

added block cmd #165

merged 8 commits into from
Oct 14, 2014

Conversation

cryptix
Copy link
Contributor

@cryptix cryptix commented Oct 13, 2014

This implements the block command from #138.


ipfs block get <key> > valfile - get block of <key> and write it to valfile
ipfs block put < valfile - saves the conents of valfile and returns it's <key>
`,
Copy link
Member

Choose a reason for hiding this comment

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

Let's do:

  Short: "manipulate raw ipfs blocks"
  Long: `ipfs block - manipulate raw ipfs blocks

    ipfs block get <key>  - get and output block named by <key>
    ipfs block put        - store stdin as a block, outputs <key>

ipfs block is a plumbing command used to manipulate raw ipfs blocks.
Reads from stdin or writes to stdout, and <key> is a base58 encoded
multihash.

`

@jbenet
Copy link
Member

jbenet commented Oct 14, 2014

Hey @cryptix -- great start! thanks for the PR. Couple of quick comments on the command wording, otherwise good to go.

@cryptix
Copy link
Contributor Author

cryptix commented Oct 14, 2014

@jbenet all done :)

@jbenet
Copy link
Member

jbenet commented Oct 14, 2014

@cryptix great, thanks!

jbenet added a commit that referenced this pull request Oct 14, 2014
@jbenet jbenet merged commit 707f701 into ipfs:master Oct 14, 2014
@cryptix cryptix deleted the blockCmd branch October 14, 2014 08:27
@jbenet jbenet mentioned this pull request Oct 23, 2014
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
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