add jobs, kill commands

This commit is contained in:
Aidan 2020-06-28 18:01:36 -07:00
parent 37c56cb322
commit e7d25057f6
No known key found for this signature in database
GPG key ID: 327711E983899316
3 changed files with 85 additions and 1 deletions

View file

@ -129,6 +129,23 @@ func GenFuncTable() ast.FuncTable {
TimesCalled: 0,
Args: 0,
},
/*
USE NATIVE KILL COMMAND.
"kill": &ast.Function{
Function: kill,
Name: "kill job",
TimesCalled: 0,
Args: 1,
},
*/
"jobs": &ast.Function{
Function: jobs,
Name: "list jobs",
TimesCalled: 0,
Args: 0,
},
}
return stdlib