0xMiden / 0xMiden/miden-debug

Enable passing commands for batch mode as cli args

Đang mở Phù hợp với người mới
#97 1 bình luận 1 reaction 1 người được giao Được @mooori nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
Rust
Star
1
Fork
8
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
16

Mô tả

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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Look at the existing batch mode implementation that reads commands from a file, likely in the CLI argument parsing logic (e.g., using clap). Add a new command-line argument (like `-ex`) that accepts multiple command strings. Integrate this with the command execution flow so that these arguments are processed similarly to file-based commands. Test by running the debugger with the new flag and verifying the commands execute.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
75/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.