Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/kubo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9b89a3dd4354
Choose a base ref
...
head repository: ipfs/kubo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 09f16003d8c7
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 20, 2015

  1. Examples for object put

    License: MIT
    Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
    dylanPowers committed Jun 20, 2015
    Copy the full SHA
    2f6f0f9 View commit details
  2. Merge pull request #1402 from dylanPowers/object-put-example

    Object put examples in help text
    jbenet committed Jun 20, 2015
    Copy the full SHA
    09f1600 View commit details
Showing with 20 additions and 0 deletions.
  1. +20 −0 core/commands/object.go
20 changes: 20 additions & 0 deletions core/commands/object.go
Original file line number Diff line number Diff line change
@@ -305,6 +305,26 @@ Data should be in the format specified by the --inputenc flag.
--inputenc may be one of the following:
* "protobuf"
* "json" (default)
Examples:
echo '{ "Data": "abc" }' | ipfs object put
This creates a node with the data "abc" and no links. For an object with links,
create a file named node.json with the contents:
{
"Data": "another",
"Links": [ {
"Name": "some link",
"Hash": "QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V",
"Size": 8
} ]
}
and then run
ipfs object put node.json
`,
},