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:
@ -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)
|
||||
|
Reference in New Issue
Block a user