mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
Move files
This commit is contained in:
parent
569d4ef23b
commit
042ba0918a
15
grab.lua
15
grab.lua
|
@ -387,12 +387,21 @@ if(args[1]=="show") then
|
||||||
if(db[args[2]]) then
|
if(db[args[2]]) then
|
||||||
local this_info=db[args[2]]
|
local this_info=db[args[2]]
|
||||||
print("Name: " .. args[2])
|
print("Name: " .. args[2])
|
||||||
print("Title: " .. db[args[2]].title)
|
if(this_info.deprecated) then
|
||||||
print("Info:\n\t" .. db[args[2]].info)
|
print("Title: [Deprecated] " .. this_info.title)
|
||||||
|
else
|
||||||
|
print("Title: " .. this_info.title)
|
||||||
|
end
|
||||||
|
print("Info: " .. this_info.info)
|
||||||
|
if(this_info.author) then print("Author: " .. this_info.author) end
|
||||||
|
if(this_info.contact) then print("Contact: " .. this_info.contact) end
|
||||||
|
|
||||||
local nFiles=0
|
local nFiles=0
|
||||||
for k,v in pairs(db[args[2]].files) do nFiles=nFiles+1 end
|
for k,v in pairs(this_info.files) do nFiles=nFiles+1 end
|
||||||
print("Files: " .. nFiles)
|
print("Files: " .. nFiles)
|
||||||
|
|
||||||
|
if(this_info.precheck) then print("Precheck: Yes") end
|
||||||
|
if(this_info.installer) then print("Installer: Yes") end
|
||||||
else
|
else
|
||||||
print("Library " .. args[2] .. " not found.")
|
print("Library " .. args[2] .. " not found.")
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,14 +12,21 @@
|
||||||
title="Arugment Checker",
|
title="Arugment Checker",
|
||||||
info="For easier argument checking",
|
info="For easier argument checking",
|
||||||
files={
|
files={
|
||||||
"checkarg.lua"
|
["libs/checkarg.lua"]="checkarg.lua"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
["util"]={
|
||||||
|
title="Utility",
|
||||||
|
info="Misc programming helper.",
|
||||||
|
files={
|
||||||
|
["libs/util.lua"]="util.lua"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
["libevent"]={
|
["libevent"]={
|
||||||
title="LibEvent",
|
title="LibEvent",
|
||||||
info="For easier event processing",
|
info="For easier event processing",
|
||||||
files={
|
files={
|
||||||
"libevent.lua"
|
["libs/libevent.lua"]="libevent.lua"
|
||||||
},
|
},
|
||||||
requires={
|
requires={
|
||||||
"checkarg"
|
"checkarg"
|
||||||
|
@ -29,14 +36,16 @@
|
||||||
title="LibGPU",
|
title="LibGPU",
|
||||||
info="For easier gpu programming",
|
info="For easier gpu programming",
|
||||||
files={
|
files={
|
||||||
"libgpu.lua"
|
["libs/libgpu.lua"]="libgpu.lua"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
["simple_data_structure"]={
|
["simple_data_structure"]={
|
||||||
title="Simple Lua Data Structure",
|
title="Simple Lua Data Structure",
|
||||||
info="Provides class(...),queue and vector",
|
info="Provides class(...),queue and vector",
|
||||||
files={
|
files={
|
||||||
"class.lua", "queue.lua", "vector.lua"
|
["libs/simple_data_structure/class.lua"]="class.lua",
|
||||||
|
["libs/simple_data_structure/queue.lua"]="queue.lua",
|
||||||
|
["libs/simple_data_structure/vector.lua"]="vector.lua"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
["minesweeper"]={
|
["minesweeper"]={
|
||||||
|
@ -55,8 +64,8 @@
|
||||||
author="Kiritow",
|
author="Kiritow",
|
||||||
contact="1362050620@qq.com",
|
contact="1362050620@qq.com",
|
||||||
files={
|
files={
|
||||||
"drone_bios.lua",
|
["programs/drone/drone_bios.lua"]="drone_bios.lua",
|
||||||
"drone_console.lua"
|
["programs/drone/drone_console.lua"]="drone_console.lua"
|
||||||
},
|
},
|
||||||
requires={
|
requires={
|
||||||
"libevent"
|
"libevent"
|
||||||
|
@ -64,13 +73,38 @@
|
||||||
},
|
},
|
||||||
["smartstorage"]={
|
["smartstorage"]={
|
||||||
title="Smart Storage",
|
title="Smart Storage",
|
||||||
info="Smart Storage",
|
info="Smarter chests, auto-crafting...",
|
||||||
author="Kiritow",
|
author="Kiritow",
|
||||||
files={
|
files={
|
||||||
"SmartStorage.lua"
|
["programs/smartstorage/SmartStorage.lua"]="SmartStorage.lua"
|
||||||
},
|
},
|
||||||
requires={
|
requires={
|
||||||
"libevent"
|
"libevent"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
["smartstoragerobot"]={
|
||||||
|
title="Smart Storage Robot Client",
|
||||||
|
info="This is the client program of Smart Storage System.",
|
||||||
|
author="Kiritow",
|
||||||
|
files={
|
||||||
|
["programs/smartstorage/SmartStorageRobot.lua"]="SmartStorageRobot.lua"
|
||||||
|
},
|
||||||
|
requires={
|
||||||
|
"libevent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
["station"]={
|
||||||
|
title="Station",
|
||||||
|
info="Collection of railway station control programs.",
|
||||||
|
deprecated=true,
|
||||||
|
files={
|
||||||
|
["programs/station/station_2_3.lua"]="station_2_3.lua",
|
||||||
|
["programs/station/station_2_4.lua"]="station_2_4.lua",
|
||||||
|
["programs/station/station_2_4_2.lua"]="station_2_4_2.lua",
|
||||||
|
["programs/station/station_2_6.lua"]="station_2_6.lua"
|
||||||
|
},
|
||||||
|
requires={
|
||||||
|
"libevent","checkarg","util","simple_data_structure"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user