feat(list): 增强列表命令功能并改进显示格式

- 添加 `-l` 参数支持显示文件详细信息
- 改进文件列表的排序和分类显示
- 为不同文件类型添加颜色标识
- 添加统计信息和提示文本
- 修复重启命令别名从 "restart" 改为 "reboot"
- 更新系统版本号显示为 LeonOS 1.0
This commit is contained in:
2025-08-31 17:52:37 +08:00
parent ee22dd1138
commit acad8982aa
3 changed files with 127 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
_G._HOST = _G._HOST .. " (LeonOS 1.6.0)"
_G._HOST = _G._HOST .. " (LeonOS 1.0)"
local fs = rawget(_G, "fs")
@@ -27,7 +27,7 @@ end
local expect = function(_, _, _, _) end
local shutdown = pull(os, "shutdown")
local reboot = pull(os, "restart")
local reboot = pull(os, "reboot")
-- `os` extras go in here now.
local rc = {