feat(MaaPiCli): 重构为基于子命令的 CLI,新增任务配置文件支持与运行进度输出 - #1346
Open
srdr0p wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Sorry @srdr0p, your pull request is larger than the review limit of 150000 diff characters
Contributor
Author
|
@wicast 麻烦看看,主要是增强cli的自动化能力 |
Contributor
布什,这玩意和我有啥关系?at错人了吧 |
Contributor
Author
|
Contributor
Author
|
@MistEO 麻烦看看,有哪里需要改的 |
Member
|
这种大规模重构考虑作为一个独立的社区项目吗? |
Contributor
Author
暂时还没有,这个规模也不大(主要是库代码),实际实现的功能也不多。只是为了更方便AI使用。 |
Member
|
是不是提交错了,把应用宝的修改提上来了? @srdr0p |
Member
因为 MaaPiCli 本质上只是一个 maafw 附带的 PI 协议最小实现,我并不希望给他引入太多额外的功能。现在准备拆一个单独的仓库出去( #1466 ),可以考虑在 fork 的基础上直接改成一个独立项目 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(MaaPiCli): 重构 CLI 接口,支持非交互式/脚本化运行
原版 MaaPiCli 只能通过交互式菜单逐步操作,无法用于 CI/CD、
定时任务或脚本自动化场景。本次重构将其改造为标准子命令式 CLI。
新增子命令:
generate-config pi:非交互式生成 maa_pi_config.json,run [--task-config <file>]:运行任务,可通过 TOML/JSON配置文件指定本次运行的任务列表与选项覆盖,无需重走交互流程
不带参数时与原来的
-d等价。--task-config用于临时指定任务,比如临时跑单个任务。此时会复用maa_pi_config.json中的选项list:列出所有可用控制器、任务和选项支持 --controller / --resource / --adb-controller 参数
generate-config task:生成含默认值的示例任务配置文件(TOML)其他改进:
Sourcery 摘要
改进 Android 虚拟显示屏的发现和几何信息处理,以实现更可靠的控制器初始化。
Bug 修复:
增强功能:
Original summary in English
Summary by Sourcery
Improve Android virtual-display discovery and geometry handling for more reliable controller initialization.
Bug Fixes:
Enhancements: