提交 ef6e9cf2 作者: hannahhoward

feat(commands): --stream option for ls

Convert LS Command to use current cmds lib
Update LS Command to support streaming
Rebase fixes

License: MIT
Signed-off-by: 's avatarhannahhoward <hannah@hannahhoward.net>
上级 31099e88
...@@ -3,7 +3,6 @@ package commands ...@@ -3,7 +3,6 @@ package commands
import ( import (
"errors" "errors"
lgc "github.com/ipfs/go-ipfs/commands/legacy"
dag "github.com/ipfs/go-ipfs/core/commands/dag" dag "github.com/ipfs/go-ipfs/core/commands/dag"
name "github.com/ipfs/go-ipfs/core/commands/name" name "github.com/ipfs/go-ipfs/core/commands/name"
ocmd "github.com/ipfs/go-ipfs/core/commands/object" ocmd "github.com/ipfs/go-ipfs/core/commands/object"
...@@ -127,7 +126,7 @@ var rootSubcommands = map[string]*cmds.Command{ ...@@ -127,7 +126,7 @@ var rootSubcommands = map[string]*cmds.Command{
"id": IDCmd, "id": IDCmd,
"key": KeyCmd, "key": KeyCmd,
"log": LogCmd, "log": LogCmd,
"ls": lgc.NewCommand(LsCmd), "ls": LsCmd,
"mount": MountCmd, "mount": MountCmd,
"name": name.NameCmd, "name": name.NameCmd,
"object": ocmd.ObjectCmd, "object": ocmd.ObjectCmd,
...@@ -165,7 +164,7 @@ var rootROSubcommands = map[string]*cmds.Command{ ...@@ -165,7 +164,7 @@ var rootROSubcommands = map[string]*cmds.Command{
}, },
"get": GetCmd, "get": GetCmd,
"dns": DNSCmd, "dns": DNSCmd,
"ls": lgc.NewCommand(LsCmd), "ls": LsCmd,
"name": { "name": {
Subcommands: map[string]*cmds.Command{ Subcommands: map[string]*cmds.Command{
"resolve": name.IpnsCmd, "resolve": name.IpnsCmd,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论