bettola/assets/scripts/bin/rm.lua
Ritchie Cunningham e06d6eec37 [Refactor] Implement scriptable Lua API
Large architecture refactor of the scripting system.

Previous implementation required Lua scripts to return "action
tables" which were interpreted by a large and not very flexible at all
if-else ladder in C++. While fine for the initial implementation, it's
not scalable, and it makes it impossible for players to write their own
meaningful tools.
2025-09-27 21:18:05 +01:00

4 lines
133 B
Lua

local file_to_remove = arg[1]
if not file_to_remove then return "rm: missing operand" end
return bettola.rm(context, file_to_remove)