Skip to content

Commit 9826929

Browse files
att
1 parent eb51a0f commit 9826929

File tree

2 files changed

+11
-202705
lines changed

2 files changed

+11
-202705
lines changed

luasrc/main.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ private_vibescript.internal_main = function()
2222
end
2323
return 0
2424
end
25+
if action == "eval" then
26+
local all_args = {}
27+
while true do
28+
local arg = argv.get_next_unused()
29+
if not arg then break end
30+
table.insert(all_args,arg)
31+
end
32+
local command = table.concat(all_args," ")
33+
load(command)()
34+
return 0
35+
end
2536

2637

2738
if action == "version" or action == "--version" then

0 commit comments

Comments
 (0)