Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
3a1c8d7a
提交
3a1c8d7a
authored
6月 19, 2015
作者:
Juan Batiz-Benet
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1400 from dylanPowers/object-help
"object" added to the descriptions of object patch and object data
上级
594c1bfa
3f22954f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
object.go
core/commands/object.go
+5
-5
没有找到文件。
core/commands/object.go
浏览文件 @
3a1c8d7a
...
@@ -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.
...
@@ -431,7 +431,7 @@ var objectPatchCmd = &cmds.Command{
...
@@ -431,7 +431,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.
...
@@ -439,12 +439,12 @@ Examples:
...
@@ -439,12 +439,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
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论