From 98c4ef8c00011aa8643ff0358447e55ec8cff9d2 Mon Sep 17 00:00:00 2001 From: garret Date: Fri, 18 Nov 2022 02:34:14 +0000 Subject: basic info getter --- get-info.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 get-info.lua (limited to 'get-info.lua') 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)) -- cgit v1.2.3-70-g09d2