v1.13.0 - Added shutdown and reboot commands.

This commit is contained in:
TheWahlolly
2025-07-02 11:48:51 +03:00
parent eb155c4ace
commit f3d10bc82a
8 changed files with 23 additions and 5 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
local agcfg = {
["halyde"] = {
["maindir"] = "",
["version"] = "1.12.6",
["version"] = "1.13.0",
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
["directories"] = {
"halyde/apps",
@@ -27,7 +27,9 @@ local agcfg = {
"halyde/apps/helpdb/lscor.txt",
"halyde/apps/helpdb/lua.txt",
"halyde/apps/helpdb/mv.txt",
"halyde/apps/helpdb/reboot.txt",
"halyde/apps/helpdb/rm.txt",
"halyde/apps/helpdb/shutdown.txt",
"halyde/apps/cat.lua",
"halyde/apps/cd.lua",
"halyde/apps/clear.lua",
@@ -40,7 +42,9 @@ local agcfg = {
"halyde/apps/lua.lua",
"halyde/apps/mkdir.lua",
"halyde/apps/mv.lua",
"halyde/apps/reboot.lua",
"halyde/apps/rm.lua",
"halyde/apps/shutdown.lua",
"halyde/config/oslogo.ans",
"halyde/config/generate/shell.json",
"halyde/config/generate/startupapps.json",
+4 -2
View File
@@ -1,9 +1,11 @@
All default Halyde shell commands:
argentum Uses the Argentum package manager.
cat Concatenates and prints a file.
cd Changes directory.
clear Clears the screen.
cp Copies a file.
echo Prints a message.
edit Opens the text editor.
fetch Displays system information.
help Shows this.
ls Lists files.
@@ -11,9 +13,9 @@ All default Halyde shell commands:
lua Starts the Lua shell.
mkdir Makes a directory.
mv Moves/renames a file.
reboot Reboots the computer.
rm Deletes a file.
edit Opens the text editor.
argentum Uses the Argentum package manager.
shutdown Shuts down the computer.
You can get additional information on any app or command by running:
help [COMMAND]
+5
View File
@@ -0,0 +1,5 @@
Usage: reboot
Reboots the computer.
Examples:
reboot Reboots the computer.
+5
View File
@@ -0,0 +1,5 @@
Usage: shutdown
Shuts down the computer.
Examples:
shutdown Shuts down the computer.
+1
View File
@@ -0,0 +1 @@
import("computer").shutdown(true)
+1
View File
@@ -0,0 +1 @@
import("computer").shutdown()
+1 -1
View File
@@ -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 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.12.6"
_G._OSVERSION = "Halyde 1.13.0"
_G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat