mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
cmdkit -> cmds
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -8,7 +8,6 @@ import (
|
||||
|
||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
||||
|
||||
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
|
||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||
merkledag "github.com/ipfs/go-merkledag"
|
||||
unixfs "github.com/ipfs/go-unixfs"
|
||||
@ -34,7 +33,7 @@ type LsOutput struct {
|
||||
}
|
||||
|
||||
var LsCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Helptext: cmds.HelpText{
|
||||
Tagline: "List directory contents for Unix filesystem objects.",
|
||||
ShortDescription: `
|
||||
Displays the contents of an IPFS or IPNS object(s) at the given path.
|
||||
@ -68,8 +67,8 @@ possible, please use 'ipfs ls' instead.
|
||||
`,
|
||||
},
|
||||
|
||||
Arguments: []cmdkit.Argument{
|
||||
cmdkit.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to list links from.").EnableStdin(),
|
||||
Arguments: []cmds.Argument{
|
||||
cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to list links from.").EnableStdin(),
|
||||
},
|
||||
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
|
||||
nd, err := cmdenv.GetNode(env)
|
||||
|
@ -1,12 +1,11 @@
|
||||
package unixfs
|
||||
|
||||
import (
|
||||
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
|
||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||
)
|
||||
|
||||
var UnixFSCmd = &cmds.Command{
|
||||
Helptext: cmdkit.HelpText{
|
||||
Helptext: cmds.HelpText{
|
||||
Tagline: "Interact with IPFS objects representing Unix filesystems.",
|
||||
ShortDescription: `
|
||||
'ipfs file' provides a familiar interface to file systems represented
|
||||
|
Reference in New Issue
Block a user