Changed scripts to machineScripts (for clarity)

This commit is contained in:
Jeff Parsons 2017-07-25 13:46:38 -07:00 committed by Jeff Parsons
commit 299948fa1f
4 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ machines:
RL0:
path: http://archive.pcjs.org/disks/dec/rl02k/RL02K-XXDP.json
sticky: top
scripts:
machineScripts:
runEKBAD0: |
selectDrive RL11 RL0;
select RL11 listDisks "XXDP+ Diagnostics";

View file

@ -9,7 +9,7 @@ machines:
debugger: true
autoStart: true
sticky: top
scripts:
machineScripts:
runEKBAD0: |
selectDrive RL11 RL0;
select RL11 listDisks "XXDP+ Diagnostics";

View file

@ -12,7 +12,7 @@ machines:
B:
path: /disks/pcx86/apps/ibm/topview/1.01/TOPVIEW101-PROGRAM.json
autoScript: startTV
scripts:
machineScripts:
startTV: |
wait Keyboard DOS;
type Keyboard "$date\r$time\r";

View file

@ -442,7 +442,7 @@ MarkOut.prototype.convertMD = function(sIndent)
/*
* Extract script definitions first, if any, from the Front Matter.
*/
var aScriptDefs = aMatch[1].match(/\nscripts:([\s\S]*?)\n([^\s]|$)/);
var aScriptDefs = aMatch[1].match(/\nmachineScripts:([\s\S]*?)\n([^\s]|$)/);
if (aScriptDefs) {
var reScript = /[ \t]+([a-z0-9$@_-]+):\s*\|/gi;
var aScripts = aScriptDefs[1].split(reScript);