Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
49dc13e5
Commit
49dc13e5
authored
Nov 18, 2014
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/commands: Added plaintext marshaler for 'pin ls'
parent
db53de80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
core/commands/pin.go
core/commands/pin.go
+7
-3
No files found.
core/commands/pin.go
View file @
49dc13e5
...
@@ -6,7 +6,6 @@ import (
...
@@ -6,7 +6,6 @@ import (
cmds
"github.com/jbenet/go-ipfs/commands"
cmds
"github.com/jbenet/go-ipfs/commands"
"github.com/jbenet/go-ipfs/core"
"github.com/jbenet/go-ipfs/core"
"github.com/jbenet/go-ipfs/merkledag"
"github.com/jbenet/go-ipfs/merkledag"
u
"github.com/jbenet/go-ipfs/util"
)
)
var
pinCmd
=
&
cmds
.
Command
{
var
pinCmd
=
&
cmds
.
Command
{
...
@@ -116,9 +115,14 @@ or recursively pinned are not included in the list.
...
@@ -116,9 +115,14 @@ or recursively pinned are not included in the list.
return
nil
,
err
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
)
{
func
pin
(
n
*
core
.
IpfsNode
,
paths
[]
string
,
recursive
bool
)
([]
*
merkledag
.
Node
,
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment