Commit d3f17bd4 authored by Matt Bell's avatar Matt Bell

commands: Added PreRun function to command

parent 2df34138
......@@ -45,6 +45,7 @@ type HelpText struct {
type Command struct {
Options []Option
Arguments []Argument
PreRun func(req Request) error
Run Function
PostRun func(res Response)
Marshalers map[EncodingType]Marshaler
......
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