v1.8.6 - (mikethe223) Added lscor.
* add lscor
* add lscor help file
* add lscor to argentum.cfg
* add labels to coroutines
* add ps as lscor alias
* Update boot.lua version number
* add lscor (and help) to halyde packages
* fix shitty copy paste
sorry wah
* i'm fucking stupid
replace fetch with lscor in help file 💀
This commit was merged in pull request #18.
This commit is contained in:
+3
-1
@@ -1,7 +1,7 @@
|
|||||||
local agcfg = {
|
local agcfg = {
|
||||||
["halyde"] = {
|
["halyde"] = {
|
||||||
["maindir"] = "",
|
["maindir"] = "",
|
||||||
["version"] = "1.8.5",
|
["version"] = "1.8.6",
|
||||||
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
||||||
["directories"] = {
|
["directories"] = {
|
||||||
"halyde/apps",
|
"halyde/apps",
|
||||||
@@ -23,6 +23,7 @@ local agcfg = {
|
|||||||
"halyde/apps/helpdb/fetch.txt",
|
"halyde/apps/helpdb/fetch.txt",
|
||||||
"halyde/apps/helpdb/help.txt",
|
"halyde/apps/helpdb/help.txt",
|
||||||
"halyde/apps/helpdb/ls.txt",
|
"halyde/apps/helpdb/ls.txt",
|
||||||
|
"halyde/apps/helpdb/lscor.txt",
|
||||||
"halyde/apps/helpdb/lua.txt",
|
"halyde/apps/helpdb/lua.txt",
|
||||||
"halyde/apps/helpdb/mv.txt",
|
"halyde/apps/helpdb/mv.txt",
|
||||||
"halyde/apps/helpdb/rm.txt",
|
"halyde/apps/helpdb/rm.txt",
|
||||||
@@ -34,6 +35,7 @@ local agcfg = {
|
|||||||
"halyde/apps/fetch.lua",
|
"halyde/apps/fetch.lua",
|
||||||
"halyde/apps/help.lua",
|
"halyde/apps/help.lua",
|
||||||
"halyde/apps/ls.lua",
|
"halyde/apps/ls.lua",
|
||||||
|
"halyde/apps/lscor.lua",
|
||||||
"halyde/apps/lua.lua",
|
"halyde/apps/lua.lua",
|
||||||
"halyde/apps/mkdir.lua",
|
"halyde/apps/mkdir.lua",
|
||||||
"halyde/apps/mv.lua",
|
"halyde/apps/mv.lua",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Ahalyde/core/
|
|||||||
Ahalyde/config/generate/
|
Ahalyde/config/generate/
|
||||||
Ahalyde/apps/helpdb/
|
Ahalyde/apps/helpdb/
|
||||||
Ahalyde/apps/
|
Ahalyde/apps/
|
||||||
V1.8.5
|
V1.8.6
|
||||||
Ainit.lua
|
Ainit.lua
|
||||||
Ahalyde/apps/helpdb/cat.txt
|
Ahalyde/apps/helpdb/cat.txt
|
||||||
Ahalyde/apps/helpdb/cd.txt
|
Ahalyde/apps/helpdb/cd.txt
|
||||||
@@ -15,6 +15,7 @@ Ahalyde/apps/helpdb/echo.txt
|
|||||||
Ahalyde/apps/helpdb/fetch.txt
|
Ahalyde/apps/helpdb/fetch.txt
|
||||||
Ahalyde/apps/helpdb/help.txt
|
Ahalyde/apps/helpdb/help.txt
|
||||||
Ahalyde/apps/helpdb/ls.txt
|
Ahalyde/apps/helpdb/ls.txt
|
||||||
|
Ahalyde/apps/helpdb/lscor.txt
|
||||||
Ahalyde/apps/helpdb/lua.txt
|
Ahalyde/apps/helpdb/lua.txt
|
||||||
Ahalyde/apps/helpdb/mv.txt
|
Ahalyde/apps/helpdb/mv.txt
|
||||||
Ahalyde/apps/helpdb/rm.txt
|
Ahalyde/apps/helpdb/rm.txt
|
||||||
@@ -26,6 +27,7 @@ Ahalyde/apps/echo.lua
|
|||||||
Ahalyde/apps/fetch.lua
|
Ahalyde/apps/fetch.lua
|
||||||
Ahalyde/apps/help.lua
|
Ahalyde/apps/help.lua
|
||||||
Ahalyde/apps/ls.lua
|
Ahalyde/apps/ls.lua
|
||||||
|
Ahalyde/apps/lscor.lua
|
||||||
Ahalyde/apps/lua.lua
|
Ahalyde/apps/lua.lua
|
||||||
Ahalyde/apps/mkdir.lua
|
Ahalyde/apps/mkdir.lua
|
||||||
Ahalyde/apps/mv.lua
|
Ahalyde/apps/mv.lua
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
Usage: lscor
|
||||||
|
Lists every active coroutine by ID and name.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
lscor Lists every active coroutine by ID and name.
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
print("\27[93m"..tostring(#cormgr.corList).."\27[0m coroutines active")
|
||||||
|
for i=1, #cormgr.corList do
|
||||||
|
if i==#cormgr.corList then
|
||||||
|
print("\27[93m└ "..i.."\27[0m - "..cormgr.labelList[i].." \27[0m")
|
||||||
|
else
|
||||||
|
print("\27[93m├ "..i.."\27[0m - "..cormgr.labelList[i].." \27[0m")
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
@@ -1 +1 @@
|
|||||||
{"prompt":"\u001b[92m%s > \u001b[0m","aliases":{"move":"mv","copy":"cp","ag":"argentum","rename":"mv","..":"cd ..","man":"help","del":"rm","delete":"rm","ren":"mv","remove":"rm","list":"ls","wget":"download","dir":"ls"},"splashMessages":["Made by John Haly- I mean Cerulean Blue.","Welcome! Type \"help\" to get started.","Also try KOCOS!","Welcome back, Commander. We have no idea what we're doing.","99.9% bug-free. The remaining 0.1% are features.","0 days since last error.","Everything is fine. The fire is decorative.","Please don't feed the background processes.","Also has fetch!","Anything red is no man's land. Trust me.","Machine...","Abort, Retry, Fail?","What's the deal with /argentum/store?","So cutting-edge you can't hold it in your hand.","Americans are the reason you see colors on-screen. I'm talking about ANSI escape codes, not politics.","Shoutout to Ponali!"],"path":["/halyde/apps/"],"startupMessage":"\n │\n │ %s\n │ %s\n │\n ","defaultWorkingDirectory":"/home/"}
|
{"prompt":"\u001b[92m%s > \u001b[0m","aliases":{"move":"mv","copy":"cp","ag":"argentum","rename":"mv","..":"cd ..","man":"help","del":"rm","delete":"rm","ren":"mv","remove":"rm","list":"ls","wget":"download","dir":"ls","ps":"lscor"},"splashMessages":["Made by John Haly- I mean Cerulean Blue.","Welcome! Type \"help\" to get started.","Also try KOCOS!","Welcome back, Commander. We have no idea what we're doing.","99.9% bug-free. The remaining 0.1% are features.","0 days since last error.","Everything is fine. The fire is decorative.","Please don't feed the background processes.","Also has fetch!","Anything red is no man's land. Trust me.","Machine...","Abort, Retry, Fail?","What's the deal with /argentum/store?","So cutting-edge you can't hold it in your hand.","Americans are the reason you see colors on-screen. I'm talking about ANSI escape codes, not politics.","Shoutout to Ponali!"],"path":["/halyde/apps/"],"startupMessage":"\n │\n │ %s\n │ %s\n │\n ","defaultWorkingDirectory":"/home/"}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
local loadfile = ...
|
local loadfile = ...
|
||||||
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
||||||
|
|
||||||
_G._OSVERSION = "Halyde 1.8.5"
|
_G._OSVERSION = "Halyde 1.8.6"
|
||||||
_G._OSLOGO = ""
|
_G._OSLOGO = ""
|
||||||
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
|
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
|
||||||
repeat
|
repeat
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
_G.cormgr = {}
|
_G.cormgr = {}
|
||||||
_G.cormgr.corList = {}
|
_G.cormgr.corList = {}
|
||||||
|
_G.cormgr.labelList = {}
|
||||||
|
|
||||||
--local ocelot = component.proxy(component.list("ocelot")())
|
--local ocelot = component.proxy(component.list("ocelot")())
|
||||||
|
|
||||||
@@ -26,6 +27,7 @@ function _G.cormgr.loadCoroutine(path, ...)
|
|||||||
end
|
end
|
||||||
--import(path, table.unpack(args))
|
--import(path, table.unpack(args))
|
||||||
end)
|
end)
|
||||||
|
table.insert(_G.cormgr.labelList, string.match(tostring(path), "([^/]+)%.lua$"))
|
||||||
table.insert(_G.cormgr.corList, cor)
|
table.insert(_G.cormgr.corList, cor)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user