Add CLI savescript and custommonitor commands #522
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Provides enhancement for Issue #521 adding CLI functionality to save and edit CLI scripts and to set the monitor virtual user before doing vucreate for such scripts.
savescript will add a .tcl extension if one is not already applied and either save to a fully qualified directory if given or to the temp area if not. Example of saving and loading.
custommonitor adds the additional monitor virtual user when doing a vucreate if the script is based on a timed script.
Note a potential perceived issue is that doing just custommonitor test and then vucreate, appears to ignore the setting. This however is not the case as there is no script loaded when vucreate is executed, in this case vucreate will then load the script according to the dict settings and set the monitor v accordingly overridng the settings made by the custommonitor command. So custommonitor is for custom scripts only as the command name should imply.
Built and tested also on Windows.
Also the tclpy package has been updated to add the savescript and custommonitor commands to the python CLI interface here https://github.com/sm-shaw/libtclpy. This can be updated using build from source.