feat(包管理器): 实现LeonOS包管理系统基础功能

添加包管理器核心程序(pkg.lua)及相关支持文件
- 实现包安装、更新、移除、列表、搜索等功能
- 添加包元数据结构和本地存储管理
- 包含示例包和命令补全支持
- 更新系统版本至0.3.0
This commit is contained in:
2025-09-01 22:03:22 +08:00
parent 47b8b5cd2c
commit fb33b53b42
11 changed files with 573 additions and 5 deletions

View File

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