File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,14 @@ type HelpText struct {
52
52
// Command is a runnable command, with input arguments and options (flags).
53
53
// It can also have Subcommands, to group units of work into sets.
54
54
type Command struct {
55
- Options []Option
56
- Arguments []Argument
57
- PreRun func (req Request ) error
55
+ Options []Option
56
+ Arguments []Argument
57
+ PreRun func (req Request ) error
58
+
59
+ // Run is the function that processes the request to generate a response.
60
+ // Note that when executing the command over the HTTP API you can only read
61
+ // after writing when using multipart requests. The request body will not be
62
+ // available for reading after the HTTP connection has been written to.
58
63
Run Function
59
64
PostRun Function
60
65
Marshalers map [EncodingType ]Marshaler
You can’t perform that action at this time.
0 commit comments