Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
41a68592
提交
41a68592
authored
2月 19, 2016
作者:
Jeromy Johnson
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2366 from ipfs/docs/edit-ls-desc
Edit the ls.go description
上级
27cbef15
63fbc7b6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
7 行增加
和
16 行删除
+7
-16
cat.go
core/commands/cat.go
+1
-4
get.go
core/commands/get.go
+1
-1
ls.go
core/commands/ls.go
+1
-2
pin.go
core/commands/pin.go
+1
-4
refs.go
core/commands/refs.go
+2
-3
ls.go
core/commands/unixfs/ls.go
+1
-2
没有找到文件。
core/commands/cat.go
浏览文件 @
41a68592
...
...
@@ -16,10 +16,7 @@ const progressBarMinSize = 1024 * 1024 * 8 // show progress bar for outputs > 8M
var
CatCmd
=
&
cmds
.
Command
{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Show IPFS object data."
,
ShortDescription
:
`
Retrieves the object named by <ipfs-or-ipns-path> and outputs the data
it contains.
`
,
ShortDescription
:
"Displays the data contained by an IPFS or IPNS object(s) at the given path."
,
},
Arguments
:
[]
cmds
.
Argument
{
...
...
core/commands/get.go
浏览文件 @
41a68592
...
...
@@ -24,7 +24,7 @@ var GetCmd = &cmds.Command{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Download IPFS objects."
,
ShortDescription
:
`
Retrieves the object named by <ipfs-or-ipns-path> and stores the data to disk
.
Stores to disk the data contained an IPFS or IPNS object(s) at the given path
.
By default, the output will be stored at './<ipfs-path>', but an alternate path
can be specified with '--output=<path>' or '-o=<path>'.
...
...
core/commands/ls.go
浏览文件 @
41a68592
...
...
@@ -33,8 +33,7 @@ var LsCmd = &cmds.Command{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"List links from an object."
,
ShortDescription
:
`
Retrieves the object named by <ipfs-or-ipns-path> and displays the links
it contains, with the following format:
Displays the links an IPFS or IPNS object(s) contains, with the following format:
<link base58 hash> <link size in bytes> <link name>
`
,
...
...
core/commands/pin.go
浏览文件 @
41a68592
...
...
@@ -34,10 +34,7 @@ type PinOutput struct {
var
addPinCmd
=
&
cmds
.
Command
{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Pins objects to local storage."
,
ShortDescription
:
`
Retrieves the object named by <ipfs-path> and stores it locally
on disk.
`
,
ShortDescription
:
"Stores an IPFS object(s) from a given path locally to disk."
,
},
Arguments
:
[]
cmds
.
Argument
{
...
...
core/commands/refs.go
浏览文件 @
41a68592
...
...
@@ -35,12 +35,11 @@ var RefsCmd = &cmds.Command{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"Lists links (references) from an object."
,
ShortDescription
:
`
Retrieves the object named by <ipfs-path> and displays the link
hashes it contains, with the following format:
Displays the link hashes an IPFS or IPNS object(s) contains, with the following format:
<link base58 hash>
Note:
list all refs recursively with -r
.
Note:
List all referencess recursively by using the flag '-r'
.
`
,
},
Subcommands
:
map
[
string
]
*
cmds
.
Command
{
...
...
core/commands/unixfs/ls.go
浏览文件 @
41a68592
...
...
@@ -36,8 +36,7 @@ var LsCmd = &cmds.Command{
Helptext
:
cmds
.
HelpText
{
Tagline
:
"List directory contents for Unix filesystem objects."
,
ShortDescription
:
`
Retrieves the object named by <ipfs-or-ipns-path> and displays the
contents.
Displays the contents of an IPFS or IPNS object(s) at the given path.
The JSON output contains size information. For files, the child size
is the total size of the file contents. For directories, the child
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论