feat: add debug mode for plugin configuration dumping

- Add a new dependency for godump in go.mod
- Import godump in main.go
- Introduce a debug flag in the CLI options
- Update the run function to include the debug flag
- Add logic to dump the plugin configuration if debug mode is enabled
- Extend the plugin struct to include a debug field

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy
2025-03-08 22:37:30 +08:00
parent 3e0f7cf5df
commit d661b29efe
4 changed files with 15 additions and 0 deletions
+1
View File
@@ -81,6 +81,7 @@ type (
File []string
Drone bool
GitHub bool
Debug bool
}
// EmbedFooterObject for Embed Footer Structure.