mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 02:30:39 +08:00
Capitalized Merkle, added single quotes, periods
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
@ -307,8 +307,8 @@ Examples:
|
|||||||
|
|
||||||
echo '{ "Data": "abc" }' | ipfs object put
|
echo '{ "Data": "abc" }' | ipfs object put
|
||||||
|
|
||||||
This creates a node with the data "abc" and no links. For an object with links,
|
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:
|
create a file named 'node.json' with the contents:
|
||||||
|
|
||||||
{
|
{
|
||||||
"Data": "another",
|
"Data": "another",
|
||||||
|
@ -21,7 +21,7 @@ var ObjectPatchCmd = &cmds.Command{
|
|||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
'ipfs object patch <root> <cmd> <args>' is a plumbing command used to
|
'ipfs object patch <root> <cmd> <args>' is a plumbing command used to
|
||||||
build custom DAG objects. It mutates objects, creating new objects as a
|
build custom DAG objects. It mutates objects, creating new objects as a
|
||||||
result. This is the merkle-dag version of modifying an object.
|
result. This is the Merkle-DAG version of modifying an object.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
Arguments: []cmds.Argument{},
|
Arguments: []cmds.Argument{},
|
||||||
@ -51,7 +51,7 @@ Append data to what already exists in the data segment in the given object.
|
|||||||
EXAMPLE:
|
EXAMPLE:
|
||||||
$ echo "hello" | ipfs object patch $HASH append-data
|
$ echo "hello" | ipfs object patch $HASH append-data
|
||||||
|
|
||||||
note: this does not append data to a 'file', it modifies the actual raw
|
Note: This does not append data to a file - it modifies the actual raw
|
||||||
data within an object. Objects have a max size of 1MB and objects larger than
|
data within an object. Objects have a max size of 1MB and objects larger than
|
||||||
the limit will not be respected by the network.
|
the limit will not be respected by the network.
|
||||||
`,
|
`,
|
||||||
@ -111,7 +111,7 @@ var patchSetDataCmd = &cmds.Command{
|
|||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Set data field of an ipfs object.",
|
Tagline: "Set data field of an ipfs object.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
Set the data of an ipfs object from stdin or with the contents of a file
|
Set the data of an ipfs object from stdin or with the contents of a file.
|
||||||
|
|
||||||
EXAMPLE:
|
EXAMPLE:
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ var patchRmLinkCmd = &cmds.Command{
|
|||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Remove a link from an object.",
|
Tagline: "Remove a link from an object.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
removes a link by the given name from root.
|
Removes a link by the given name from root.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
Arguments: []cmds.Argument{
|
Arguments: []cmds.Argument{
|
||||||
@ -233,7 +233,7 @@ var patchAddLinkCmd = &cmds.Command{
|
|||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Add a link to a given object.",
|
Tagline: "Add a link to a given object.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
Add a merkle-link to the given object and return the hash of the result.
|
Add a Merkle-link to the given object and return the hash of the result.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
@ -241,7 +241,7 @@ Examples:
|
|||||||
BAR=$(echo "bar" | ipfs add -q)
|
BAR=$(echo "bar" | ipfs add -q)
|
||||||
ipfs object 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.
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user