1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-22 04:54:30 +08:00
Files
kubo/core/commands/resolve.go
Juan Batiz-Benet b787c705e2 command output nit
2014-10-01 01:28:55 -07:00

19 lines
295 B
Go

package commands
import (
"fmt"
"io"
"github.com/jbenet/go-ipfs/core"
)
func Resolve(n *core.IpfsNode, args []string, opts map[string]interface{}, out io.Writer) error {
res, err := n.Namesys.Resolve(args[0])
if err != nil {
return err
}
fmt.Fprintf(out, "%s\n", res)
return nil
}