mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
12 lines
307 B
Lua
12 lines
307 B
Lua
|
|
local shell = require("shell")
|
||
|
|
local completion = require("cc.shell.completion")
|
||
|
|
|
||
|
|
shell.setCompletionFunction("devbin", completion.build(
|
||
|
|
{ completion.choice, { "put", "get", "run" }, true },
|
||
|
|
function(cur, prev)
|
||
|
|
if prev[1] == "put" then
|
||
|
|
return completion.dirOrFile(cur, prev)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
))
|