mirror of
https://github.com/spf13/cobra.git
synced 2024-11-15 09:48:19 -07:00
Fix typo
Signed-off-by: Cao Weiwei <cao.weiwei30@zte.com.cn>
This commit is contained in:
parent
37c3f80603
commit
4a087062c6
@ -663,7 +663,7 @@ command.SetUsageTemplate(s string)
|
||||
|
||||
## PreRun or PostRun Hooks
|
||||
|
||||
It is possible to run functions before or after the main `Run` function of your command. The `PersistentPreRun` and `PreRun` functions will be executed before `Run`. `PersistentPostRun` and `PostRun` will be executed after `Run`. The `Persistent*Run` functions will be inherrited by children if they do not declare their own. These function are run in the following order:
|
||||
It is possible to run functions before or after the main `Run` function of your command. The `PersistentPreRun` and `PreRun` functions will be executed before `Run`. `PersistentPostRun` and `PostRun` will be executed after `Run`. The `Persistent*Run` functions will be inherited by children if they do not declare their own. These functions are run in the following order:
|
||||
|
||||
- `PersistentPreRun`
|
||||
- `PreRun`
|
||||
|
Loading…
Reference in New Issue
Block a user