mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-31 16:33:54 +00:00
8 lines
109 B
Go
8 lines
109 B
Go
package hook
|
|
|
|
func Call(hook Interface) error {
|
|
err := hook.Catch(hook.Try())
|
|
hook.Finally()
|
|
return err
|
|
}
|