ethereum-optimism / mocktimism

[WIP!] Coordinates two anvil process (L1 and L2) for testing / forking op-stack chains (mocktimism placeholder name)
MIT License
20 stars 6 forks source link

:sparkles: feat: add `--json` flag for config printing #64

Closed Sabnock01 closed 9 months ago

Sabnock01 commented 9 months ago

Description

This PR adds a --json flag to the config command to print the config in Mocktimism.toml in json form. By default, it now prints the config in toml form.

Tests

cli_test.go has been updated to test against toml instead of json. Should we add an identical test for json? It would only be a single line difference.

Additional context

In addition, I've moved the mocktimism.toml file to the root for now pending #38 , added a Makefile and did some small restructuring for better readability. Let me know if any of these changes should be reverted.

Metadata