mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat(completions): 添加多个命令的自动补全功能
添加了多个命令的自动补全脚本,包括imageview、time、about等常用命令 同时修复了pkg命令中文件名输出格式的问题
This commit is contained in:
6
data/computercraft/lua/rom/completions/history.lua
Normal file
6
data/computercraft/lua/rom/completions/history.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("history", completion.build(
|
||||
{completion.number, desc = "Number of entries", optional = true}
|
||||
))
|
||||
Reference in New Issue
Block a user