Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
2d756473
提交
2d756473
authored
11月 09, 2014
作者:
Matt Bell
提交者:
Juan Batiz-Benet
11月 14, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
core/command2: Make help text match old commands
上级
3406ee0e
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
24 行增加
和
15 行删除
+24
-15
block.go
core/commands2/block.go
+6
-4
bootstrap.go
core/commands2/bootstrap.go
+1
-1
cat.go
core/commands2/cat.go
+1
-1
ls.go
core/commands2/ls.go
+4
-1
pin.go
core/commands2/pin.go
+3
-3
publish.go
core/commands2/publish.go
+2
-1
refs.go
core/commands2/refs.go
+4
-2
resolve.go
core/commands2/resolve.go
+2
-1
version.go
core/commands2/version.go
+1
-1
没有找到文件。
core/commands2/block.go
浏览文件 @
2d756473
...
...
@@ -24,7 +24,8 @@ type Block struct {
var
blockCmd
=
&
cmds
.
Command
{
Description
:
"Manipulate raw IPFS blocks"
,
Help
:
`'ipfs block' is a plumbing command used to manipulate raw ipfs blocks.
Reads from stdin or writes to stdout.`
,
Reads from stdin or writes to stdout, and <key> is a base58 encoded
multihash.`
,
Subcommands
:
map
[
string
]
*
cmds
.
Command
{
"get"
:
blockGetCmd
,
"put"
:
blockPutCmd
,
...
...
@@ -33,7 +34,8 @@ Reads from stdin or writes to stdout.`,
var
blockGetCmd
=
&
cmds
.
Command
{
Description
:
"Get a raw IPFS block"
,
Help
:
`'ipfs block get' is a plumbing command for retreiving raw ipfs blocks.`
,
Help
:
`ipfs block get is a plumbing command for retreiving raw ipfs blocks.
It outputs to stdout, and <key> is a base58 encoded multihash.`
,
Arguments
:
[]
cmds
.
Argument
{
cmds
.
Argument
{
"key"
,
cmds
.
ArgString
,
true
,
false
,
"The base58 multihash of an existing block to get"
},
...
...
@@ -72,8 +74,8 @@ var blockGetCmd = &cmds.Command{
var
blockPutCmd
=
&
cmds
.
Command
{
Description
:
"Stores input as an IPFS block"
,
Help
:
`
'ipfs block put'
is a plumbing command for storing raw ipfs blocks.
It
outputs the key of the stored block
.`
,
Help
:
`
ipfs block put
is a plumbing command for storing raw ipfs blocks.
It
reads from stdin, and <key> is a base58 encoded multihash
.`
,
Arguments
:
[]
cmds
.
Argument
{
cmds
.
Argument
{
"data"
,
cmds
.
ArgFile
,
true
,
false
,
"The data to be stored as an IPFS block"
},
...
...
core/commands2/bootstrap.go
浏览文件 @
2d756473
...
...
@@ -120,7 +120,7 @@ var bootstrapRemoveCmd = &cmds.Command{
}
var
bootstrapListCmd
=
&
cmds
.
Command
{
Description
:
"
Lists
peers in the bootstrap list"
,
Description
:
"
Show
peers in the bootstrap list"
,
Help
:
`Peers are output in the format '<multiaddr>/<peerID>'.
`
,
...
...
core/commands2/cat.go
浏览文件 @
2d756473
...
...
@@ -12,7 +12,7 @@ import (
var
catCmd
=
&
cmds
.
Command
{
Description
:
"Show IPFS object data"
,
Help
:
`Retrieves the object named by <ipfs-path> and outputs the data
it contains.
it contains.
`
,
Arguments
:
[]
cmds
.
Argument
{
...
...
core/commands2/ls.go
浏览文件 @
2d756473
...
...
@@ -25,7 +25,9 @@ type LsOutput struct {
var
lsCmd
=
&
cmds
.
Command
{
Description
:
"List links from an object."
,
Help
:
`Retrieves the object named by <ipfs-path> and displays the links
it contains.
it contains, with the following format:
<link base58 hash> <link size in bytes> <link name>
`
,
Arguments
:
[]
cmds
.
Argument
{
...
...
@@ -70,6 +72,7 @@ it contains.
},
Marshallers
:
map
[
cmds
.
EncodingType
]
cmds
.
Marshaller
{
cmds
.
Text
:
func
(
res
cmds
.
Response
)
([]
byte
,
error
)
{
// TODO: revert format to match old command
s
:=
""
output
:=
res
.
Output
()
.
(
*
LsOutput
)
.
Objects
...
...
core/commands2/pin.go
浏览文件 @
2d756473
...
...
@@ -20,8 +20,8 @@ var pinCmd = &cmds.Command{
var
addPinCmd
=
&
cmds
.
Command
{
Description
:
"Pins objects to local storage"
,
Help
:
`
Keeps the object(s) named by <ipfs-path> in local storage. If the object
isn't already being stored, IPFS retrieves it
.
Help
:
`
Retrieves the object named by <ipfs-path> and stores it locally
on disk
.
`
,
Arguments
:
[]
cmds
.
Argument
{
...
...
@@ -57,7 +57,7 @@ isn't already being stored, IPFS retrieves it.
var
rmPinCmd
=
&
cmds
.
Command
{
Description
:
"Unpin an object from local storage"
,
Help
:
`Removes the pin from the given object allowing it to be garbage
collected if needed.
collected if needed.
`
,
Arguments
:
[]
cmds
.
Argument
{
...
...
core/commands2/publish.go
浏览文件 @
2d756473
...
...
@@ -16,7 +16,8 @@ var errNotOnline = errors.New("This command must be run in online mode. Try runn
var
publishCmd
=
&
cmds
.
Command
{
Description
:
"Publish an object to IPNS"
,
Help
:
`IPNS is a PKI namespace, where names are the hashes of public keys, and
the private key enables publishing new (signed) values.
the private key enables publishing new (signed) values. In publish, the
default value of <name> is your own identity public key.
Examples:
...
...
core/commands2/refs.go
浏览文件 @
2d756473
...
...
@@ -18,9 +18,11 @@ type RefsOutput struct {
var
refsCmd
=
&
cmds
.
Command
{
Description
:
"Lists link hashes from an object"
,
Help
:
`Retrieves the object named by <ipfs-path> and displays the link
hashes it contains, with the following format:
hashes it contains, with the following format:
<link base58 hash>`
,
<link base58 hash>
Note: list all refs recursively with -r.`
,
Arguments
:
[]
cmds
.
Argument
{
cmds
.
Argument
{
"ipfs-path"
,
cmds
.
ArgString
,
true
,
true
,
...
...
core/commands2/resolve.go
浏览文件 @
2d756473
...
...
@@ -14,7 +14,8 @@ type ResolveOutput struct {
var
resolveCmd
=
&
cmds
.
Command
{
Description
:
"Gets the value currently published at an IPNS name"
,
Help
:
`IPNS is a PKI namespace, where names are the hashes of public keys, and
the private key enables publishing new (signed) values.
the private key enables publishing new (signed) values. In resolve, the
default value of <name> is your own identity public key.
Examples:
...
...
core/commands2/version.go
浏览文件 @
2d756473
...
...
@@ -13,7 +13,7 @@ type VersionOutput struct {
var
versionCmd
=
&
cmds
.
Command
{
Description
:
"Outputs the current version of IPFS"
,
Help
:
`Returns the version number of IPFS.
Help
:
`Returns the version number of IPFS
and exits
.
`
,
Options
:
[]
cmds
.
Option
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论