mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat: 更新安装程序版本至0.3.8 Beta 5
refactor: 移除ROM目录下多余的completions文件 docs: 添加项目规则说明要求使用中文回复 chore: 添加VSCode计数器生成的代码统计文件
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("about", completion.build(
|
||||
-- about command doesn't take parameters
|
||||
))
|
||||
@@ -1,7 +0,0 @@
|
||||
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}
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("appdelete", completion.build(
|
||||
{completion.anything, desc = "App name"}
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("applist", completion.build(
|
||||
-- applist command doesn't take parameters
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("clear", completion.build(
|
||||
-- clear command doesn't take parameters
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("commands", completion.build(
|
||||
-- commands command doesn't take parameters
|
||||
))
|
||||
@@ -1,7 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("config", completion.build(
|
||||
{completion.anything, desc = "Config key"},
|
||||
{completion.anything, desc = "Config value", optional = true}
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("craftos", completion.build(
|
||||
-- craftos command doesn't take parameters
|
||||
))
|
||||
@@ -1,7 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("find", completion.build(
|
||||
{completion.anything, desc = "Search pattern"},
|
||||
{completion.dir, desc = "Directory", optional = true}
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("helplist", completion.build(
|
||||
-- helplist command doesn't take parameters
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("history", completion.build(
|
||||
{completion.number, desc = "Number of entries", optional = true}
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("imageview", completion.build(
|
||||
completion.anything
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("lua", completion.build(
|
||||
{completion.dirOrFile, desc = "Script file", optional = true}
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("peripherals", completion.build(
|
||||
-- peripherals command doesn't take parameters
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("programs", completion.build(
|
||||
-- programs command doesn't take parameters
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("shell", completion.build(
|
||||
{completion.anything, desc = "Command", optional = true}
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("storage", completion.build(
|
||||
-- storage command doesn't take parameters
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("threads", completion.build(
|
||||
-- threads command doesn't take parameters
|
||||
))
|
||||
@@ -1,6 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("time", completion.build(
|
||||
-- time command doesn't take parameters
|
||||
))
|
||||
@@ -1,7 +0,0 @@
|
||||
local shell = require("shell")
|
||||
local completion = require("cc.shell.completion")
|
||||
|
||||
shell.setCompletionFunction("wget", completion.build(
|
||||
{completion.anything, desc = "URL"},
|
||||
{completion.dirOrFile, desc = "Output file", optional = true}
|
||||
))
|
||||
Reference in New Issue
Block a user