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
778d6c63
Commit
778d6c63
authored
Jul 31, 2017
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
object put: wrap CID in Object
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
c9446a77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
core/commands/object/object.go
core/commands/object/object.go
+4
-4
No files found.
core/commands/object/object.go
View file @
778d6c63
...
...
@@ -412,15 +412,15 @@ And then run:
}
}
res
.
SetOutput
(
objectCid
)
res
.
SetOutput
(
&
Object
{
Hash
:
objectCid
.
String
()}
)
},
Marshalers
:
cmds
.
MarshalerMap
{
cmds
.
Text
:
func
(
res
cmds
.
Response
)
(
io
.
Reader
,
error
)
{
object
:=
res
.
Output
()
.
(
*
cid
.
Cid
)
return
strings
.
NewReader
(
"added "
+
object
.
String
()
+
"
\n
"
),
nil
object
:=
res
.
Output
()
.
(
*
Object
)
return
strings
.
NewReader
(
"added "
+
object
.
Hash
+
"
\n
"
),
nil
},
},
Type
:
cid
.
Cid
{},
Type
:
Object
{},
}
var
ObjectNewCmd
=
&
cmds
.
Command
{
...
...
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