Right now we have 3 types of Zest scripts:
- Active - scripts which attack a specified target (represented by a request)
- Passive - scripts which attack a specified target (represented by a request)
- Targeted - scripts which are 'stand alone'
However I'm wondering if it would be better to change it as follows:
- Active/passive becomes a boolean property of the script, and just specifies if the script makes any changes or not
- Scripts specify the parameters they expect:
- if none then the script is 'stand-alone'
- If they expect a single Request then they will be like the 'old' Active and Passive scripts
- We may initially just support mandatory parameters, but could support optional ones later?
- Scripts could also specify the type they return, eg nothing or a Request or a boolean or ??
So an 'old' Active script would have the 'Active' property set, require one Request as a parameter and return a Request.
How does that sound?
Any thoughts or suggestions etc?
Cheers,
Simon