如何编写新插件
编写新插件
可参考实现了 sleep 插件。在项目的 plugin/executable/sleep/sleep.go。内有详细注释。
编写好插件后,可在 plugin/enabled_plugin.go 匿名 import ,注册插件。
分享第三方插件
编写好插件后,如果想将插件分享,可以在 github 的 issue 或 discussion 分享。
Last updated
Was this helpful?
Was this helpful?