aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-11-18 02:34:14 +0000
committergarret <garret@airmail.cc>2022-11-18 02:34:14 +0000
commit98c4ef8c00011aa8643ff0358447e55ec8cff9d2 (patch)
tree5795de680a740cf81bd307f08ccf048dfe7be7fa
parent46d620d3cc1b9c97f505a5e0459418672c383de0 (diff)
downloaddepctrl-feedmaker-98c4ef8c00011aa8643ff0358447e55ec8cff9d2.tar.gz
depctrl-feedmaker-98c4ef8c00011aa8643ff0358447e55ec8cff9d2.tar.bz2
depctrl-feedmaker-98c4ef8c00011aa8643ff0358447e55ec8cff9d2.zip
basic info getter
-rwxr-xr-xget-info.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/get-info.lua b/get-info.lua
new file mode 100755
index 0000000..d89946c
--- /dev/null
+++ b/get-info.lua
@@ -0,0 +1,16 @@
+#!/usr/bin/env lua5.1
+local inspect = require "inspect"
+print(arg[1])
+local run_macro = loadfile(arg[1])
+
+run_macro()
+local f = io.open("version", "r")
+version = f:read()
+
+print(script_name)
+print(script_description)
+print(script_author)
+print(script_version)
+print(script_namespace)
+print(version)
+--print(inspect(_G))