refactor(installer): 更新安装器版本至0.3.6 Beta 5

重构示例包文件结构,合并程序文件并移除补全功能
在app.lua中添加shell和applist模块依赖
This commit is contained in:
2025-09-02 12:46:34 +08:00
parent c927b19cb2
commit f3313c3e7f
5 changed files with 5 additions and 13 deletions

View File

@@ -1,10 +0,0 @@
-- example command completion
local shell = require('shell')
local completion = require('completion')
-- Set up completion for example command
shell.setCompletionFunction('example', completion.build({
-- 这里可以添加example命令的补全逻辑
completion.choice{'--help', '-h'}
}))

View File

@@ -6,7 +6,6 @@
"license": "MIT",
"dependencies": {},
"files": [
"programs/example.lua",
"completions/example.lua"
"example.lua"
]
}

View File

@@ -1,5 +1,8 @@
-- app.lua - Application launcher for LeonOS
local fs = require("fs")
local shell = require("shell")
local applist = require("applist")
local function show_help()
print("Usage: app <program_name> [arguments]")
print("Runs an application from the /app directory")