1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-26 16:12:13 +02:00

added .cmd() as alias for .exec()

This commit is contained in:
Gani Georgiev
2023-10-14 20:08:21 +03:00
parent 866d38caf9
commit 731383a915
5 changed files with 3175 additions and 3135 deletions

View File

@@ -549,7 +549,8 @@ func osBinds(vm *goja.Runtime) {
vm.Set("$os", obj)
obj.Set("args", os.Args)
obj.Set("exec", exec.Command)
obj.Set("exec", exec.Command) // @deprecated
obj.Set("cmd", exec.Command)
obj.Set("exit", os.Exit)
obj.Set("getenv", os.Getenv)
obj.Set("dirFS", os.DirFS)