Commit 3f22954f authored by Dylan Powers's avatar Dylan Powers

"object" added to the descriptions of object patch and object data

License: MIT
Signed-off-by: default avatarDylan Powers <dylan.kyle.powers@gmail.com>
parent 36a52811
...@@ -75,12 +75,12 @@ var objectDataCmd = &cmds.Command{ ...@@ -75,12 +75,12 @@ var objectDataCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "Outputs the raw bytes in an IPFS object", Tagline: "Outputs the raw bytes in an IPFS object",
ShortDescription: ` ShortDescription: `
ipfs data is a plumbing command for retreiving the raw bytes stored in ipfs object data is a plumbing command for retreiving the raw bytes stored in
a DAG node. It outputs to stdout, and <key> is a base58 encoded a DAG node. It outputs to stdout, and <key> is a base58 encoded
multihash. multihash.
`, `,
LongDescription: ` LongDescription: `
ipfs data is a plumbing command for retreiving the raw bytes stored in ipfs object data is a plumbing command for retreiving the raw bytes stored in
a DAG node. It outputs to stdout, and <key> is a base58 encoded a DAG node. It outputs to stdout, and <key> is a base58 encoded
multihash. multihash.
...@@ -411,7 +411,7 @@ var objectPatchCmd = &cmds.Command{ ...@@ -411,7 +411,7 @@ var objectPatchCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "Create a new merkledag object based on an existing one", Tagline: "Create a new merkledag object based on an existing one",
ShortDescription: ` ShortDescription: `
'ipfs patch <root> [add-link|rm-link] <args>' is a plumbing command used to 'ipfs object patch <root> [add-link|rm-link] <args>' is a plumbing command used to
build custom DAG objects. It adds and removes links from objects, creating a new build custom DAG objects. It adds and removes links from objects, creating a new
object as a result. This is the merkle-dag version of modifying an object. object as a result. This is the merkle-dag version of modifying an object.
...@@ -419,12 +419,12 @@ Examples: ...@@ -419,12 +419,12 @@ Examples:
EMPTY_DIR=$(ipfs object new unixfs-dir) EMPTY_DIR=$(ipfs object new unixfs-dir)
BAR=$(echo "bar" | ipfs add -q) BAR=$(echo "bar" | ipfs add -q)
ipfs patch $EMPTY_DIR add-link foo $BAR ipfs object patch $EMPTY_DIR add-link foo $BAR
This takes an empty directory, and adds a link named foo under it, pointing to This takes an empty directory, and adds a link named foo under it, pointing to
a file containing 'bar', and returns the hash of the new object. a file containing 'bar', and returns the hash of the new object.
ipfs patch $FOO_BAR rm-link foo ipfs object patch $FOO_BAR rm-link foo
This removes the link named foo from the hash in $FOO_BAR and returns the This removes the link named foo from the hash in $FOO_BAR and returns the
resulting object hash. resulting object hash.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment