help命令更新

This commit is contained in:
2026-03-29 22:25:00 +08:00
parent dd96a44c4d
commit cd2e1e510c

View File

@@ -50,6 +50,18 @@ namespace CMLeonOS.Commands
Description = "Clear screen" Description = "Clear screen"
}, },
new CommandInfo new CommandInfo
{
Command = "clear",
Parameters = "",
Description = "Clear screen"
},
new CommandInfo
{
Command = "cls",
Parameters = "",
Description = "Clear screen"
},
new CommandInfo
{ {
Command = "restart", Command = "restart",
Parameters = "", Parameters = "",
@@ -86,6 +98,12 @@ namespace CMLeonOS.Commands
Description = "Simple calculator" Description = "Simple calculator"
}, },
new CommandInfo new CommandInfo
{
Command = "cal",
Parameters = "[year] [month]",
Description = "Show calendar"
},
new CommandInfo
{ {
Command = "exporttestexe", Command = "exporttestexe",
Parameters = "<output>", Parameters = "<output>",
@@ -110,6 +128,12 @@ namespace CMLeonOS.Commands
Description = "Show command history" Description = "Show command history"
}, },
new CommandInfo new CommandInfo
{
Command = "sleep",
Parameters = "<seconds>",
Description = "Sleep for specified seconds"
},
new CommandInfo
{ {
Command = "background", Command = "background",
Parameters = "<hex>", Parameters = "<hex>",
@@ -141,6 +165,12 @@ namespace CMLeonOS.Commands
SubCommands = new[] { new SubCommandInfo { Command = "", Description = "Tab key inserts 4 spaces" } } SubCommands = new[] { new SubCommandInfo { Command = "", Description = "Tab key inserts 4 spaces" } }
}, },
new CommandInfo new CommandInfo
{
Command = "nano",
Parameters = "<file>",
Description = "Open Nano editor"
},
new CommandInfo
{ {
Command = "ls", Command = "ls",
Parameters = "<dir>", Parameters = "<dir>",
@@ -227,6 +257,12 @@ namespace CMLeonOS.Commands
Description = "Move/rename file" Description = "Move/rename file"
}, },
new CommandInfo new CommandInfo
{
Command = "rename",
Parameters = "<old> <new>",
Description = "Rename file or directory"
},
new CommandInfo
{ {
Command = "touch", Command = "touch",
Parameters = "<file>", Parameters = "<file>",
@@ -239,6 +275,18 @@ namespace CMLeonOS.Commands
Description = "Find file" Description = "Find file"
}, },
new CommandInfo new CommandInfo
{
Command = "tree",
Parameters = "[dir]",
Description = "Show directory tree"
},
new CommandInfo
{
Command = "tuitree",
Parameters = "[dir]",
Description = "Show TUI tree view"
},
new CommandInfo
{ {
Command = "getdisk", Command = "getdisk",
Parameters = "", Parameters = "",
@@ -312,6 +360,18 @@ namespace CMLeonOS.Commands
Description = "Application manager" Description = "Application manager"
}, },
new CommandInfo new CommandInfo
{
Command = "diff",
Parameters = "<file1> <file2>",
Description = "Compare two files"
},
new CommandInfo
{
Command = "com",
Parameters = "<file>",
Description = "Execute command script file"
},
new CommandInfo
{ {
Command = "branswe", Command = "branswe",
Parameters = "<filename>", Parameters = "<filename>",
@@ -330,6 +390,18 @@ namespace CMLeonOS.Commands
Description = "Hexadecimal file editor" Description = "Hexadecimal file editor"
}, },
new CommandInfo new CommandInfo
{
Command = "markit",
Parameters = "<file.mi>",
Description = "Open MarkIt document in shell renderer"
},
new CommandInfo
{
Command = "runbin",
Parameters = "<file>",
Description = "Run MSE binary file"
},
new CommandInfo
{ {
Command = "ping", Command = "ping",
Parameters = "<ip>", Parameters = "<ip>",
@@ -384,6 +456,12 @@ namespace CMLeonOS.Commands
Description = "Show current username" Description = "Show current username"
}, },
new CommandInfo new CommandInfo
{
Command = "hostname",
Parameters = "[new_name]",
Description = "Show or set hostname"
},
new CommandInfo
{ {
Command = "base64", Command = "base64",
Parameters = "encrypt <text>", Parameters = "encrypt <text>",
@@ -451,6 +529,30 @@ namespace CMLeonOS.Commands
Parameters = "<page>", Parameters = "<page>",
Description = "Show help page (1-5)", Description = "Show help page (1-5)",
SubCommands = new[] { new SubCommandInfo { Command = "help all", Description = "Show all help pages" } } SubCommands = new[] { new SubCommandInfo { Command = "help all", Description = "Show all help pages" } }
},
new CommandInfo
{
Command = "ftp",
Parameters = "",
Description = "Start FTP service"
},
new CommandInfo
{
Command = "logs",
Parameters = "",
Description = "Show system logs"
},
new CommandInfo
{
Command = "testgui",
Parameters = "",
Description = "Run GUI test"
},
new CommandInfo
{
Command = "testtui",
Parameters = "",
Description = "Run TUI test"
} }
}; };