v1.13.0 - Added shutdown and reboot commands.
This commit is contained in:
+5
-1
@@ -1,7 +1,7 @@
|
|||||||
local agcfg = {
|
local agcfg = {
|
||||||
["halyde"] = {
|
["halyde"] = {
|
||||||
["maindir"] = "",
|
["maindir"] = "",
|
||||||
["version"] = "1.12.6",
|
["version"] = "1.13.0",
|
||||||
["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",
|
||||||
@@ -27,7 +27,9 @@ local agcfg = {
|
|||||||
"halyde/apps/helpdb/lscor.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/reboot.txt",
|
||||||
"halyde/apps/helpdb/rm.txt",
|
"halyde/apps/helpdb/rm.txt",
|
||||||
|
"halyde/apps/helpdb/shutdown.txt",
|
||||||
"halyde/apps/cat.lua",
|
"halyde/apps/cat.lua",
|
||||||
"halyde/apps/cd.lua",
|
"halyde/apps/cd.lua",
|
||||||
"halyde/apps/clear.lua",
|
"halyde/apps/clear.lua",
|
||||||
@@ -40,7 +42,9 @@ local agcfg = {
|
|||||||
"halyde/apps/lua.lua",
|
"halyde/apps/lua.lua",
|
||||||
"halyde/apps/mkdir.lua",
|
"halyde/apps/mkdir.lua",
|
||||||
"halyde/apps/mv.lua",
|
"halyde/apps/mv.lua",
|
||||||
|
"halyde/apps/reboot.lua",
|
||||||
"halyde/apps/rm.lua",
|
"halyde/apps/rm.lua",
|
||||||
|
"halyde/apps/shutdown.lua",
|
||||||
"halyde/config/oslogo.ans",
|
"halyde/config/oslogo.ans",
|
||||||
"halyde/config/generate/shell.json",
|
"halyde/config/generate/shell.json",
|
||||||
"halyde/config/generate/startupapps.json",
|
"halyde/config/generate/startupapps.json",
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
All default Halyde shell commands:
|
All default Halyde shell commands:
|
||||||
|
argentum Uses the Argentum package manager.
|
||||||
cat Concatenates and prints a file.
|
cat Concatenates and prints a file.
|
||||||
cd Changes directory.
|
cd Changes directory.
|
||||||
clear Clears the screen.
|
clear Clears the screen.
|
||||||
cp Copies a file.
|
cp Copies a file.
|
||||||
echo Prints a message.
|
echo Prints a message.
|
||||||
|
edit Opens the text editor.
|
||||||
fetch Displays system information.
|
fetch Displays system information.
|
||||||
help Shows this.
|
help Shows this.
|
||||||
ls Lists files.
|
ls Lists files.
|
||||||
@@ -11,9 +13,9 @@ All default Halyde shell commands:
|
|||||||
lua Starts the Lua shell.
|
lua Starts the Lua shell.
|
||||||
mkdir Makes a directory.
|
mkdir Makes a directory.
|
||||||
mv Moves/renames a file.
|
mv Moves/renames a file.
|
||||||
|
reboot Reboots the computer.
|
||||||
rm Deletes a file.
|
rm Deletes a file.
|
||||||
edit Opens the text editor.
|
shutdown Shuts down the computer.
|
||||||
argentum Uses the Argentum package manager.
|
|
||||||
|
|
||||||
You can get additional information on any app or command by running:
|
You can get additional information on any app or command by running:
|
||||||
help [COMMAND]
|
help [COMMAND]
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
Usage: reboot
|
||||||
|
Reboots the computer.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
reboot Reboots the computer.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
Usage: shutdown
|
||||||
|
Shuts down the computer.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
shutdown Shuts down the computer.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import("computer").shutdown(true)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import("computer").shutdown()
|
||||||
@@ -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","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/"}
|
{"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","poweroff":"shutdown","restart":"reboot"},"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.12.6"
|
_G._OSVERSION = "Halyde 1.13.0"
|
||||||
_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
|
||||||
|
|||||||
Reference in New Issue
Block a user