11-- This Script is Part of the Prometheus Obfuscator by Levno_710
22--
3- -- test .lua
3+ -- cli .lua
44-- This script contains the Code for the Prometheus CLI
55
66-- Configure package.path for requiring Prometheus
@@ -13,25 +13,25 @@ package.path = script_path() .. "?.lua;" .. package.path;
1313local Prometheus = require (" prometheus" );
1414Prometheus .Logger .logLevel = Prometheus .Logger .LogLevel .Info ;
1515
16- -- Override Error callback
16+ -- Override error callback
1717--[[ Prometheus.Logger.errorCallback = function(...)
1818 print(Prometheus.colors(Prometheus.Config.NameUpper .. ": " .. ..., "red"))
1919 os.exit(1);
2020end]]
2121
22- -- see if the file exists
22+ -- Check if the file exists
2323local function file_exists (file )
2424 local f = io.open (file , " rb" )
2525 if f then f :close () end
2626 return f ~= nil
2727end
28-
29- -- get all lines from a file, returns an empty
28+
29+ -- get all lines from a file, returns an empty
3030-- list/table if the file does not exist
3131local function lines_from (file )
3232 if not file_exists (file ) then return {} end
3333 local lines = {}
34- for line in io.lines (file ) do
34+ for line in io.lines (file ) do
3535 lines [# lines + 1 ] = line
3636 end
3737 return lines
@@ -135,4 +135,4 @@ Prometheus.Logger:info(string.format("Writing output to \"%s\"", outFile));
135135-- Write Output
136136local handle = io.open (outFile , " w" );
137137handle :write (out );
138- handle :close ();
138+ handle :close ();
0 commit comments