From the days when new, load, and snapshot were in separate repositories and before common existed code for getting the default directory and project path, as well as checking first run was duplicated in each crate.
Finally refactor the duplication out. Additionally stop using string formed arguments and utilize real structs. Uses std::default to make struct creation simpler and less noisy in tests.
From the days when
new
,load
, andsnapshot
were in separate repositories and beforecommon
existed code for getting the default directory and project path, as well as checking first run was duplicated in each crate.Finally refactor the duplication out. Additionally stop using string formed arguments and utilize real structs. Uses
std::default
to make struct creation simpler and less noisy in tests.