Skip to content

Commit c29aa65

Browse files
authored
Update cli.lua
change test.lua to cli.lua
1 parent 3a2e283 commit c29aa65

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/cli.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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;
1313
local Prometheus = require("prometheus");
1414
Prometheus.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);
2020
end]]
2121

22-
-- see if the file exists
22+
-- Check if the file exists
2323
local function file_exists(file)
2424
local f = io.open(file, "rb")
2525
if f then f:close() end
2626
return f ~= nil
2727
end
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
3131
local 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
136136
local handle = io.open(outFile, "w");
137137
handle:write(out);
138-
handle:close();
138+
handle:close();

0 commit comments

Comments
 (0)