mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
将installer.lua和bios.lua中的版本号从0.3.1更新至0.3.2 使用completion.build重构pkg命令补全逻辑,简化代码结构
7 lines
224 B
Lua
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"},
|
|
))
|