From b7f8162f5f36ad1e8f916809dacb88a7a1597fc0 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 17 Mar 2021 21:07:47 +0800 Subject: [PATCH] =?UTF-8?q?cmd=E6=94=B9=E6=AD=A3print=E7=94=A8=E6=B3=95?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=EF=BC=8C=E5=88=A0=E9=99=A4shutdown=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_cmd.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/parts/scenes/app_cmd.lua b/parts/scenes/app_cmd.lua index 20557c7a..42443ce7 100644 --- a/parts/scenes/app_cmd.lua +++ b/parts/scenes/app_cmd.lua @@ -117,17 +117,6 @@ do--commands.help(arg) "Usage: rst", }, }, - shutdown={ - description="(Attempt to) shutdown your machine.", - details={ - "(Attempt to) shutdown your machine. Arguments to this command", - "will be passed on to the system shutdown command.", - "", - "Usage:", - "shutdown", - "shutdown [args]", - }, - }, fn={ description="Simulates a Function key press.", details={ @@ -225,7 +214,6 @@ do--commands.help(arg) "del", "cls", "rst", - "shutdown", "fn", "scrinfo", "wireframe", @@ -266,11 +254,8 @@ do--commands.help(arg) else log{C.R,"No command called "..arg} end - - --Else end end -function commands.shutdown(arg)os.execute("shutdown "..arg)end function commands.error(mes)error(mes)end function commands.cls()outputBox:clear()end function commands.rst() @@ -299,7 +284,7 @@ function commands.print(name) log{C.R,"No file called '"..name.."'"} end else - log{C.water,"Usage: del [filename]"} + log{C.water,"Usage: print [filename]"} end end function commands.url(url)