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.
5 lines
152 B
Lua
5 lines
152 B
Lua
-- /bin/ssh - Connects to a remote host.
|
|
local target = arg[1]
|
|
if not target then return "ssh: missing operand" end
|
|
return bettola.ssh(context, target)
|