Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Scripts Plugin #1

Merged
merged 8 commits into from
Feb 6, 2025
Merged

feat: Scripts Plugin #1

merged 8 commits into from
Feb 6, 2025

Conversation

phrp720
Copy link
Owner

@phrp720 phrp720 commented Feb 6, 2025

New Plugin Type

  • Added a new scripts plugin type to enable running third-party scripts. This includes the creation of ScriptConfig and Script structs, as well as the implementation of script execution logic. (models/script.go [1] plugins/script/plugin.go [2]

Configuration Files

  • Updated the README.md to include the new scripts plugin and replaced the detailed workflow description with a link to the plugin workflow documentation. (README.md README.mdR30-R34)
  • Added example configuration for the scripts plugin in aw-plugin-scripts.yaml. (config-examples/aw-plugin-scripts.yaml config-examples/aw-plugin-scripts.yamlR1-R8)
  • Expanded the aw-plugin-filters.yaml configuration with additional filters for various categories such as Email, Programming, Image, Audio, Video, Social Media, and more. (config-examples/aw-plugin-filters.yaml config-examples/aw-plugin-filters.yamlR1-R209)

Code Refactoring

  • Moved the contains function to a new utility package and updated its usage throughout the codebase. (plugins/filter/operations.go [1] [2] [3] util/util.go [4]
  • Updated the RawName method in the filters plugin to use the constant FILTER from the models package. (plugins/filter/plugin.go plugins/filter/plugin.goL77-R82)

Plugin Initialization

Utility Functions

  • Added utility functions for checking if a file exists and if a slice contains a given string. (util/util.go util/util.goR1-R21)

These changes collectively enhance the functionality, configurability, and maintainability of the aw-sync-agent-plugins project.

@phrp720 phrp720 merged commit fede93c into main Feb 6, 2025
2 checks passed
@phrp720 phrp720 deleted the abstract-plugin branch February 7, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant