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:
@ -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
|
||||
|
Reference in New Issue
Block a user