-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstone_manager.lua
56 lines (42 loc) · 1.36 KB
/
stone_manager.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
-- a module for managing the various stone files
local function installStone(repo, stone, version) -- TODO: implement
end
local function uninstallStone(repo, stone, version) -- TODO: implement
end
local function checkUpdateStone(repo, stone) -- TODO: implement
end
local function updateStone(repo, stone) -- TODO: implement
end
local function getAllStones() -- TODO: implement
-- return a representation of the stones file
end
local function getInstalledStones() -- TODO: implement
end
local function loadRepos() -- TODO: implement
end
local function saveRepos() -- TODO: implement
end
local function addRepo(name, url) -- TODO: implement
end
local function removeRepo(name) -- TODO: implement
end
local function getRepoList() -- TODO: implement
-- return a representation of the repo list
end
local function fetchStones() -- TODO: implement
-- for each repo get their stones and write them to the local file
end
return {
installStone = installStone,
uninstallStone = uninstallStone,
checkUpdateStone = checkUpdateStone,
updateStone = updateStone,
getAllStones = getAllStones,
getInstalledStones = getInstalledStones,
loadRepos = loadRepos,
saveRepos = saveRepos,
addRepo = addRepo,
removeRepo = removeRepo,
getRepoList = getRepoList,
fetchStones = fetchStones,
}