ironmansoftware / universal-automation

Universal Automation is the PowerShell-first automation platform.
https://ironmansoftware.com/universal-automation/
MIT License
24 stars 4 forks source link

Map Universal Variable with Script Paramter #173

Open claudiospizzi opened 4 years ago

claudiospizzi commented 4 years ago

Debugging Issue outside of Universal Automation

Currently, the scripts using Universal Automation Variables are hard to test and debug outside of Universal Automation, because the variables are injected into the script scope from externally while starting the script. If I develop and debug them within VS Code, I call the script and the variables are empty.

Mapping Variable to Parameter

I suggest add option to map the universal variable to a script parameter. So if we have a string parameter called $TargetServer, the same Universal Automation Variable named "TargetServer" should be mapped to the parameter.