Skip to content

Conversation

@mostafa
Copy link
Member

@mostafa mostafa commented Jan 3, 2023

This PR adds the ability to pass cmdline args to the plugin via the args key of the plugin listing in the gatewayd_plugins.yaml config file. So a possible plugin config file will like this:

gatewayd-plugin-test:
  # whether to enable or disable the plugin on the next run
  enabled: True
  # path to the plugin's binary file
  localPath: ../gatewayd-plugin-test/gatewayd-plugin-test
  # Pass cmdline args to the plugin
  args: ["--log-level", "info"]
  # Checksum hash to verify the binary before loading
  checksum: a20e3a1529f4460ad24416a055d599f6f55f42ead836345a4bf0a17d056abb45

Fixes #72.

@mostafa mostafa merged commit de98dd1 into main Jan 3, 2023
@mostafa mostafa deleted the add-args-to-plugin-cmd branch January 3, 2023 21:34
mostafa added a commit that referenced this pull request Jan 29, 2023
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.

Add command arguments to plugin on load

2 participants