Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
f613af43
Commit
f613af43
authored
Oct 14, 2014
by
Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated help for block commands
parent
a6630c80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
cmd/ipfs/block.go
cmd/ipfs/block.go
+19
-8
No files found.
cmd/ipfs/block.go
View file @
f613af43
...
...
@@ -8,12 +8,15 @@ import (
var
cmdIpfsBlock
=
&
commander
.
Command
{
UsageLine
:
"block"
,
Short
:
"
get/put **
raw
**
ipfs blocks"
,
Long
:
`ipfs block
(get|put) - get/put **
raw
**
ipfs blocks
.
Short
:
"
manipulate
raw ipfs blocks"
,
Long
:
`ipfs block
- manipulate
raw ipfs blocks
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>
`
,
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.`
,
// Run: blockGetCmd,
Subcommands
:
[]
*
commander
.
Command
{
cmdIpfsBlockGet
,
...
...
@@ -23,8 +26,12 @@ var cmdIpfsBlock = &commander.Command{
}
var
cmdIpfsBlockGet
=
&
commander
.
Command
{
UsageLine
:
"get"
,
Short
:
"get a raw ipfs block"
,
UsageLine
:
"get <key>"
,
Short
:
"get and output block named by <key>"
,
Long
:
`ipfs get <key> - get and output block named by <key>
ipfs block get is a plumbing command for retreiving raw ipfs blocks.
It outputs to stdout, and <key> is a base58 encoded multihash.`
,
Run
:
makeCommand
(
command
{
name
:
"blockGet"
,
args
:
1
,
...
...
@@ -36,7 +43,11 @@ var cmdIpfsBlockGet = &commander.Command{
var
cmdIpfsBlockPut
=
&
commander
.
Command
{
UsageLine
:
"put"
,
Short
:
"put a raw ipfs block"
,
Short
:
"store stdin as a block, outputs <key>"
,
Long
:
`ipfs put - store stdin as a block, outputs <key>
ipfs block put is a plumbing command for storing raw ipfs blocks.
It reads from stding, and <key> is a base58 encoded multihash.`
,
Run
:
makeCommand
(
command
{
name
:
"blockPut"
,
args
:
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment