Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* run_system_command.wren */
|
||||
/* Execute_a_system_command.wren */
|
||||
class Command {
|
||||
foreign static exec(name, param) // the code for this is provided by Go
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* run_system_command.go*/
|
||||
/* Execute_a_system_command.go*/
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
@ -29,7 +29,7 @@ func execCommand(vm *wren.VM, parameters []any) (any, error) {
|
|||
|
||||
func main() {
|
||||
vm := wren.NewVM()
|
||||
fileName := "run_system_command.wren"
|
||||
fileName := "Execute_a_system_command.wren"
|
||||
methodMap := wren.MethodMap{"static exec(_,_)": execCommand}
|
||||
classMap := wren.ClassMap{"Command": wren.NewClass(nil, nil, methodMap)}
|
||||
module := wren.NewModule(classMap)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue