Commit bffcfa60 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

docs(commands) Type

parent 89131d64
...@@ -40,6 +40,12 @@ type Command struct { ...@@ -40,6 +40,12 @@ type Command struct {
Arguments []Argument Arguments []Argument
Run Function Run Function
Marshallers map[EncodingType]Marshaller Marshallers map[EncodingType]Marshaller
// Type describes the type of the output of the Command's Run Function.
// Precisely, the value of Type is an instance of the return type of the
// Run Function.
//
// ie. If command Run returns &Block{}, then Command.Type == &Block{}
Type interface{} Type interface{}
Subcommands map[string]*Command Subcommands map[string]*Command
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment