MaaAssistantArknights / MaaAssistantArknights/maa-cli
希望可以输出json
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 117
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
RT, 希望有一个类似“--log-printer=json”之类的选项可以把所有输出改成jsonl的形式。
这涉及整个log系统可能不太能改,所以希望至少有一个“--output=json”之类的选项,可以让run、fight之类的主要命令最终产生json summary。
目前我看到所有命令都输出非结构化的数据,比如`maa activity`之类的获取信息命令,以及各种任务的执行报告。
看到大部分人似乎喜欢写配置文件然后执行maa让它完成所有工作,但我个人比较喜欢编写脚本实现所有功能。
目前我试图实现的功能有:
1. 先用mumu模拟器的cli启动实例并隐藏窗口,再调用各种maa命令
2. 执行Depot任务(cli似乎没有写文件,summary也没有,只能解析日志);调用一图流API获取关卡推荐;根据设定的数量-当前库存计算百分比对需求排序;生成task刷指定关卡
3. 运行一个必定不会执行的【不吃药且超高需求】任务,获取当前理智并计算下次任务运行时间
4. 写一个程序判断【我有没有打开PC端】或者【我安卓手机上的明日方舟近1小时有切到前台过】,如果有则推迟计划
5. 只在公招出高资时发邮件给我,其他时候静默
**显然**,这些功能绝大部分永远不可能进入maa(或cli)本身。虽然这种“糕端”需求应该极少就是了orz。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the current output of the `maa activity` command and the `run` and `fight` command reports. Determine whether the initial scope should be JSON summaries, JSONL logging, or both, and identify the commands that need stable machine-readable output. Done means scripts can consume the selected command results without parsing unstructured logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100