ldoodle
10 months agoAdvisor
Script Functions/Modules
Similar to AppliesTo Functions, we should be able to create Script Functions/Modules that all other scripts, e.g. PropertySource, can call.
For example I have an API call function embedded in to a single PropertySource. If I need to do the same thing in another script I have to embed it all inline again. And if that grows to 10s or even 100s of scripts and I need to update the code, then it becomes unmanageable.
So instead such shared script functions/modules should be able to go somewhere else that we can then import to another script.
Both Groovy and PowerShell support this functionality.