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-cmds
Commits
7f936fb8
Commit
7f936fb8
authored
Jun 03, 2017
by
keks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use type EncoderMap; gx publish 0.3.2
parent
774b4ae6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
.gx/lastpubver
.gx/lastpubver
+1
-1
command.go
command.go
+1
-2
legacy.go
legacy.go
+1
-1
package.json
package.json
+1
-1
No files found.
.gx/lastpubver
View file @
7f936fb8
0.3.
1
: Qm
eJXSetiGpUzubM2GQiWRQehrqKN4oAfNYoWxj8rH6xq3
0.3.
2
: Qm
WgHMDUnHypofwydF9iJ7V8Gj2C6n6SRstm2GVM1UbZSt
command.go
View file @
7f936fb8
...
@@ -11,7 +11,6 @@ package cmds
...
@@ -11,7 +11,6 @@ package cmds
import
(
import
(
"errors"
"errors"
"fmt"
"fmt"
"io"
"gx/ipfs/QmeGapzEYCQkoEYN5x5MCPdj1zMGMHRjcPbA26sveo2XV4/go-ipfs-cmdkit"
"gx/ipfs/QmeGapzEYCQkoEYN5x5MCPdj1zMGMHRjcPbA26sveo2XV4/go-ipfs-cmdkit"
...
@@ -44,7 +43,7 @@ type Command struct {
...
@@ -44,7 +43,7 @@ type Command struct {
// available for reading after the HTTP connection has been written to.
// available for reading after the HTTP connection has been written to.
Run
Function
Run
Function
PostRun
PostRunMap
PostRun
PostRunMap
Encoders
map
[
Encod
ingType
]
func
(
Request
)
func
(
io
.
Writer
)
Encoder
Encoders
Encod
erMap
Helptext
cmdkit
.
HelpText
Helptext
cmdkit
.
HelpText
// External denotes that a command is actually an external binary.
// External denotes that a command is actually an external binary.
...
...
legacy.go
View file @
7f936fb8
...
@@ -408,7 +408,7 @@ func NewCommand(oldcmd *oldcmds.Command) *Command {
...
@@ -408,7 +408,7 @@ func NewCommand(oldcmd *oldcmds.Command) *Command {
}
}
}
}
cmd
.
Encoders
=
make
(
map
[
Encod
ingType
]
func
(
Request
)
func
(
io
.
Writer
)
Encoder
)
cmd
.
Encoders
=
make
(
Encod
erMap
)
for
encType
,
m
:=
range
oldcmd
.
Marshalers
{
for
encType
,
m
:=
range
oldcmd
.
Marshalers
{
cmd
.
Encoders
[
EncodingType
(
encType
)]
=
func
(
m
oldcmds
.
Marshaler
,
encType
oldcmds
.
EncodingType
)
func
(
req
Request
)
func
(
io
.
Writer
)
Encoder
{
cmd
.
Encoders
[
EncodingType
(
encType
)]
=
func
(
m
oldcmds
.
Marshaler
,
encType
oldcmds
.
EncodingType
)
func
(
req
Request
)
func
(
io
.
Writer
)
Encoder
{
...
...
package.json
View file @
7f936fb8
...
@@ -34,6 +34,6 @@
...
@@ -34,6 +34,6 @@
"language"
:
"go"
,
"language"
:
"go"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
"name"
:
"go-ipfs-cmds"
,
"name"
:
"go-ipfs-cmds"
,
"version"
:
"0.3.
1
"
"version"
:
"0.3.
2
"
}
}
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