Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
5ebfd712
提交
5ebfd712
authored
2月 16, 2016
作者:
Jeromy Johnson
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2299 from ipfs/feature/small-changes-rebase
Capitalized Merkle, added single quotes, periods
上级
40c4d85e
f92e407c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
object.go
core/commands/object/object.go
+2
-2
patch.go
core/commands/object/patch.go
+6
-6
没有找到文件。
core/commands/object/object.go
浏览文件 @
5ebfd712
...
...
@@ -307,8 +307,8 @@ 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:
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",
...
...
core/commands/object/patch.go
浏览文件 @
5ebfd712
...
...
@@ -21,7 +21,7 @@ var ObjectPatchCmd = &cmds.Command{
ShortDescription
:
`
'ipfs object patch <root> <cmd> <args>' is a plumbing command used to
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
{},
...
...
@@ -51,7 +51,7 @@ Append data to what already exists in the data segment in the given object.
EXAMPLE:
$ 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
the limit will not be respected by the network.
`
,
...
...
@@ -111,7 +111,7 @@ var patchSetDataCmd = &cmds.Command{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Set data field of an ipfs object."
,
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:
...
...
@@ -173,7 +173,7 @@ var patchRmLinkCmd = &cmds.Command{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Remove a link from an object."
,
ShortDescription
:
`
r
emoves a link by the given name from root.
R
emoves a link by the given name from root.
`
,
},
Arguments
:
[]
cmds
.
Argument
{
...
...
@@ -233,7 +233,7 @@ var patchAddLinkCmd = &cmds.Command{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Add a link to a given object."
,
ShortDescription
:
`
Add a
m
erkle-link to the given object and return the hash of the result.
Add a
M
erkle-link to the given object and return the hash of the result.
Examples:
...
...
@@ -241,7 +241,7 @@ Examples:
BAR=$(echo "bar" | ipfs add -q)
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.
`
,
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论