Files
LeonOS/data/computercraft/lua/rom/completions/ver.lua
Leonmmcoset 565da37a34 feat: 添加ver命令并更新LeonOS版本至0.1.8
- 新增ver命令用于显示LeonOS版本信息
- 更新installer.lua和bios.lua中的版本号至0.1.8
- 为ver命令添加shell别名和补全功能
2025-09-01 16:29:34 +08:00

6 lines
209 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local shell = require("shell")
local completion = require("cc.shell.completion")
shell.setCompletionFunction("ver", completion.build(
-- ver命令不接受参数所以这里没有额外的补全选项
))