From 0d148f65e0eead4a2ea164d22ff844db428ebdb6 Mon Sep 17 00:00:00 2001 From: Autumn Date: Sun, 17 May 2026 15:12:52 +0100 Subject: [main] added placeholder echo & service fetching utils --- selenepaw.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'selenepaw.lua') diff --git a/selenepaw.lua b/selenepaw.lua index 704ff1a..3979d93 100644 --- a/selenepaw.lua +++ b/selenepaw.lua @@ -6,8 +6,22 @@ local help = require("src/help") -- check if no args -if not args then +if #arg == 0 then help.main() + return end + +-- run associated action +local actions = require("src/actions") +local action = actions[tostring(arg[1])] + +if not action then + + help.main() + return + +end + +action() -- cgit v1.3