Commit 49dc13e5 authored by Matt Bell's avatar Matt Bell

core/commands: Added plaintext marshaler for 'pin ls'

parent db53de80
......@@ -6,7 +6,6 @@ import (
cmds "github.com/jbenet/go-ipfs/commands"
"github.com/jbenet/go-ipfs/core"
"github.com/jbenet/go-ipfs/merkledag"
u "github.com/jbenet/go-ipfs/util"
)
var pinCmd = &cmds.Command{
......@@ -116,9 +115,14 @@ or recursively pinned are not included in the list.
return nil, err
}
return n.Pinning.Set().GetKeys(), nil
return &KeyList{
Keys: n.Pinning.Set().GetKeys(),
}, nil
},
Type: &KeyList{},
Marshalers: cmds.MarshalerMap{
cmds.Text: KeyListTextMarshaler,
},
Type: []u.Key{},
}
func pin(n *core.IpfsNode, paths []string, recursive bool) ([]*merkledag.Node, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment