put has no key argument (it's derived from the valfile)

This commit is contained in:
Henry 2014-10-14 00:13:12 +02:00
parent 5b635bb9ea
commit 4abba7bc03

View File

@ -12,7 +12,7 @@ var cmdIpfsBlock = &commander.Command{
Long: `ipfs block (get|put) - get/put **raw** ipfs blocks.
ipfs block get <key> > valfile - get block of <key> and write it to valfile
ipfs block put <key> < valfile - pipe valfile to block <key>
ipfs block put < valfile - saves the conents of valfile and returns it's <key>
`,
// Run: blockGetCmd,
Subcommands: []*commander.Command{
@ -24,7 +24,7 @@ var cmdIpfsBlock = &commander.Command{
var cmdIpfsBlockGet = &commander.Command{
UsageLine: "get",
Short: "get a row ipfs block",
Short: "get a raw ipfs block",
Run: makeCommand(command{
name: "blockGet",
args: 1,
@ -36,10 +36,10 @@ var cmdIpfsBlockGet = &commander.Command{
var cmdIpfsBlockPut = &commander.Command{
UsageLine: "put",
Short: "put a row ipfs block",
Short: "put a raw ipfs block",
Run: makeCommand(command{
name: "blockPut",
args: 1,
args: 0,
flags: nil,
online: true,
cmdFn: commands.BlockPut,