v0.7.0 - Added basic CLI tools: ls, cd, cp, mv, rm, lua

This commit is contained in:
TheWahlolly
2025-04-27 10:13:12 +03:00
parent 64a761fdde
commit 109c0beffb
19 changed files with 347 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
local args = {...}
local file = args[1]
args = nil
local fs = import("filesystem")
if file:sub(1, 1) ~= "/" then
file = shell.workingDirectory .. file
end
if not fs.exists(file) then
print("\27[91mFile does not exist.")
end
fs.remove(file)