Enable passing commands for batch mode as cli args
- 主要语言
- Rust
- 星标
- 1
- 派生
- 8
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 16
描述
Currently commands for the `--commands` batch mode are read from a file. Some use cases may require only a single/few simple commands and creating a file for that can be overkill. In particular when sharing recipes with users:
- now: *first* create a file with `command1 command2 ...` and *then* execute
- `./miden-debug --commands cmds.txt ...`
- goal: pass commands directly as cli args
- `./miden-debug -ex command1 -ex command2 ...`
This corresponds to:
- `--one-line` in lldb [docs](https://lldb.llvm.org/man/lldb.html#cmdoption-lldb-one-line)
- `--eval-command` in gdb [docs](https://www.man7.org/linux/man-pages/man1/gdb.1.html)
贡献指南
调研方向
查看现有的从文件读取命令的批处理模式实现,可能在CLI参数解析逻辑中(例如使用clap)。添加一个新的命令行参数(如`-ex`),该参数接受多个命令字符串。将此与命令执行流程集成,以便这些参数的处理方式与基于文件的命令类似。通过使用新标志运行调试器并验证命令是否执行来进行测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 75/100