1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-20 02:21:48 +08:00

commands: Allow overriding marshaller for any encoding type

This commit is contained in:
Matt Bell
2014-11-03 23:17:39 -08:00
committed by Juan Batiz-Benet
parent 33ad56e6d0
commit 2a1116cec8
2 changed files with 7 additions and 16 deletions

View File

@ -32,7 +32,7 @@ type Command struct {
Options []Option
Arguments []Argument
Run Function
Format Marshaller
Marshallers map[EncodingType]Marshaller
Type interface{}
Subcommands map[string]*Command
}