Add a --save flag to automatically write the transaction analysis to a file.
Context
Saves users from having to redirect stdout and allows for simultaneous terminal and file output.
Implementation Guidelines
Key Files: crates/cli/src/main.rs.
- If the flag is set, write the JSON representation to the specified path.
Expectations
What done looks like: prism trace <hash> --save report.json produces the file and still shows the terminal UI.
For any question, reach me on Discord: emry_ss
Add a
--saveflag to automatically write the transaction analysis to a file.Context
Saves users from having to redirect stdout and allows for simultaneous terminal and file output.
Implementation Guidelines
Key Files:
crates/cli/src/main.rs.Expectations
What done looks like:
prism trace <hash> --save report.jsonproduces the file and still shows the terminal UI.For any question, reach me on Discord: emry_ss