lapis icon indicating copy to clipboard operation
lapis copied to clipboard

run files with `lapis exec`

Open DarkWiiPlayer opened this issue 7 years ago • 2 comments

It would be nice if there was a prettier way to do this than lapis exec 'loadfile"filename"()'

DarkWiiPlayer avatar Mar 12 '17 03:03 DarkWiiPlayer

is there a reason you need to use exec? Most of lapis can also run on the command line without openresty?

Also you can use require to load and execute a file right away, just leave off the .lua

leafo avatar Mar 12 '17 17:03 leafo

pretty much just for aesthetics; a script that runs a file of code inside the server looks prettier if you can write "lapis execfile <filename>" or something like that, specially if you have to change it after not looking at it for two years.

DarkWiiPlayer avatar Mar 12 '17 23:03 DarkWiiPlayer