Files
LeonOS/data/computercraft/lua/rom/completions/pkg.lua
Leonmmcoset 7ebd710a3c chore: 更新版本号至0.3.2并重构pkg命令补全逻辑
将installer.lua和bios.lua中的版本号从0.3.1更新至0.3.2
使用completion.build重构pkg命令补全逻辑,简化代码结构
2025-09-01 22:14:57 +08:00

7 lines
224 B
Lua

local shell = require("shell")
local completion = require("cc.shell.completion")
shell.setCompletionFunction("pkg", completion.build(
completion.choice{"install", "update", "remove", "list", "search", "info", "help"},
))