0xMiden / 0xMiden/miden-debug

Enable passing commands for batch mode as cli args

Aperta Adatta ai principianti
#97 1 commento 1 reazione 1 assegnatario Rivendicata da @mooori Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
1
Fork
8
Merge medio
2g 13h
PR unite (30g)
16

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
75/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.