1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-19 09:52:03 +08:00

core/commands: Made add command output a channel

core/commands: Don't use pointers for Type field
This commit is contained in:
Matt Bell
2015-01-06 11:36:18 -08:00
parent 69999bd0a7
commit 6236ef7fdb
17 changed files with 23 additions and 23 deletions

View File

@ -29,7 +29,7 @@ var UpdateCmd = &cmds.Command{
}
return updateApply(n)
},
Type: &UpdateOutput{},
Type: UpdateOutput{},
Subcommands: map[string]*cmds.Command{
"check": UpdateCheckCmd,
"log": UpdateLogCmd,
@ -62,7 +62,7 @@ var UpdateCheckCmd = &cmds.Command{
}
return updateCheck(n)
},
Type: &UpdateOutput{},
Type: UpdateOutput{},
Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) (io.Reader, error) {
v := res.Output().(*UpdateOutput)