mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +08:00
remove old cat
This commit is contained in:
@ -24,32 +24,3 @@ var catCmd = makeCommand(command{
|
||||
flags: nil,
|
||||
cmdFn: commands.Cat,
|
||||
})
|
||||
|
||||
/*
|
||||
func catCmd(c *commander.Command, inp []string) error {
|
||||
if len(inp) < 1 {
|
||||
u.POut(c.Long)
|
||||
return nil
|
||||
}
|
||||
|
||||
conf, err := getConfigDir(c.Parent)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
com := daemon.NewCommand()
|
||||
com.Command = "cat"
|
||||
com.Args = inp
|
||||
|
||||
err = daemon.SendCommand(com, conf)
|
||||
if err != nil {
|
||||
n, err := localNode(conf, false)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return commands.Cat(n, com.Args, com.Opts, os.Stdout)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user