Skip to content

Add --save flag to export JSON reports #27

@Emrys02

Description

@Emrys02

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions