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.
Description
This PR adds a
--json
flag to theconfig
command to print the config inMocktimism.toml
injson
form. By default, it now prints the config intoml
form.Tests
cli_test.go
has been updated to test againsttoml
instead ofjson
. Should we add an identical test forjson
? It would only be a single line difference.Additional context
In addition,
I've moved theand did some small restructuring for better readability. Let me know if any of these changes should be reverted.mocktimism.toml
file to the root for now pending #38 , added aMakefile
Metadata