Skip to content

Commit

Permalink
docs(commands) Type
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Tiger Chow committed Nov 12, 2014
1 parent fd57ee3 commit 0915ab1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ type Command struct {
Arguments []Argument
Run Function
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{}
Subcommands map[string]*Command
}
Expand Down

0 comments on commit 0915ab1

Please sign in to comment.