Go to All Forums

Providing input parameters to plugins

It doesn't seem that I can have my plugin (PowerShell) read any files or user-defined environment variables on execution.

I have a plugin that returns stats about a folder. While the plugin is the same on each machine, the folder I want it to monitor differs on each. I tried setting an environment variable for the script to read ($env:<variable>) but it seems unable to do so. I've previously tried to get plugins to read from a configuration file and haven't had any luck there either.

I saw something about allowing a <plugin>.json file and it may be able to use it for some sort of input or configuration but I didn't see any details on how to use it or what was possible there. Is there a way to provide inputs or other machine-specific configuration into a plugin?

Like (1) Reply
Replies (0)