1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-25 15:08:45 +08:00

commands: Added PreRun function to command

This commit is contained in:
Matt Bell
2015-01-21 15:18:45 -08:00
parent 1281b25105
commit 856d2896a7
2 changed files with 8 additions and 0 deletions

View File

@ -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