Enable passing commands for batch mode as cli args
- 主要言語
- Rust
- スター
- 1
- フォーク
- 8
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 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