brianp / muxed

Another TMUX project manager
MIT License
59 stars 3 forks source link

Reduce Project Path & First Run Check code duplication #43

Closed brianp closed 4 years ago

brianp commented 4 years ago

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.