aboutsummaryrefslogtreecommitdiff
path: root/selenepaw.lua
diff options
context:
space:
mode:
authorAutumn <git@autumnfo.rest>2026-05-17 15:12:52 +0100
committerAutumn <git@autumnfo.rest>2026-05-17 15:12:52 +0100
commit0d148f65e0eead4a2ea164d22ff844db428ebdb6 (patch)
tree01b0b5d50a9ea7bdfce2278c2f4d2baba9af987b /selenepaw.lua
parent177f3214d3115a5f38e139cff3963d7fb11b439a (diff)
[main] added placeholder echo & service fetching utils
Diffstat (limited to 'selenepaw.lua')
-rw-r--r--selenepaw.lua16
1 files changed, 15 insertions, 1 deletions
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()