Skip to content

Commit 39a8553

Browse files
ChristophLHRColdIV
andcommitted
updated comments
Co-authored-by: Josh <[email protected]>
1 parent f3ed4f2 commit 39a8553

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

libs/scm/scriptManager.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ do
1616
end
1717
local log = function(...) SCM.Log:log(...) end
1818

19-
---loads the scripts
2019
function ScriptManager:loadScripts()
2120
local file = fs.open(config()["configDirectory"] .. config()["scriptFile"], "r")
2221
if not file then
@@ -30,7 +29,6 @@ do
3029
end
3130
end
3231

33-
---loads all scripts
3432
function ScriptManager:saveScripts()
3533
local file = fs.open(config()["configDirectory"] .. config()["scriptFile"], "w")
3634
if not file then
@@ -41,7 +39,6 @@ do
4139
file.close()
4240
end
4341

44-
---adds a script to the script File
4542
---@param script table | nil
4643
---@param success boolean
4744
---@return boolean
@@ -107,14 +104,12 @@ do
107104
return false
108105
end
109106

110-
--- updates all scripts
111107
function ScriptManager:updateAllScripts()
112108
for i = 1, #self.scripts, 1 do
113109
self:updateScript(self.scripts[i].name, "default")
114110
end
115111
end
116112

117-
--- removes a script
118113
---@param name string
119114
---@param keepScriptConfig boolean | nil
120115
function ScriptManager:removeScript(name, keepScriptConfig)
@@ -133,6 +128,7 @@ do
133128
self.scripts = o
134129
self:saveScripts()
135130
end
131+
136132
-- delete file
137133
local scriptDir = config()[scriptType .. "Directory"]
138134
if scriptType and (
@@ -153,7 +149,6 @@ do
153149
SCM.Autocomplete:updateAutocomplete()
154150
end
155151

156-
--- removes all scripts
157152
function ScriptManager:removeAllScripts()
158153
local tmpScripts = {}
159154
for i = 1, #self.scripts, 1 do
@@ -183,6 +178,7 @@ do
183178
file = fs.open("./" .. config()["libraryDirectory"] .. name .. ".lua", "r")
184179
end
185180
if not file then log('File ' .. name .. ' not found') end
181+
186182
-- Find requirements by searching for comment --@requires name
187183
local requires = {}
188184
while true do

0 commit comments

Comments
 (0)