docs(commands) Type
Brian Tiger Chow committed
Nov 11, 2014 at 21:33 UTC
e6f2de40dc521dce1ec66929370456aefae64795
1 file changed
+6
commands/command.go
+6
@@ -40,6 +40,12 @@ type Command struct {
40
Arguments []Argument
41
Run Function
42
Marshallers map[EncodingType]Marshaller
43
+
44
+ // Type describes the type of the output of the Command's Run Function.
45
+ // Precisely, the value of Type is an instance of the return type of the
46
+ // Run Function.
47
+ //
48
+ // ie. If command Run returns &Block{}, then Command.Type == &Block{}
49
Type interface{}
50
Subcommands map[string]*Command
51
}