🎉 exit
command
This commit is contained in:
parent
ddc51b06ce
commit
f457c83553
14
src/command/exit.js
Normal file
14
src/command/exit.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Juicescript.command_define({
|
||||||
|
name: "exit",
|
||||||
|
alias: ["return"],
|
||||||
|
|
||||||
|
validate: function(runner){
|
||||||
|
// count
|
||||||
|
runner.argument_validate_count(0);
|
||||||
|
},
|
||||||
|
|
||||||
|
execute: function(runner){
|
||||||
|
// MOVE COMMAND COUNTER TO END OF CURRENT SCOPE //
|
||||||
|
runner.counter = runner.scope_tree.command.length;
|
||||||
|
}
|
||||||
|
});
|
Reference in New Issue
Block a user