mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 06:47:00 +00:00
7 lines
289 B
Lua
7 lines
289 B
Lua
|
|
local shell = require("shell")
|
||
|
|
local completion = require("cc.shell.completion")
|
||
|
|
|
||
|
|
shell.setCompletionFunction("app", completion.build(
|
||
|
|
{completion.choice, choices = {"install", "update", "remove", "list"}, desc = "Command"},
|
||
|
|
{completion.anything, desc = "App name", optional = true}
|
||
|
|
))
|