dominikbraun / timetrace

A simple CLI for tracking your working time.
Apache License 2.0
679 stars 75 forks source link

#81 Rename project file #133

Open joshuaherrera opened 3 years ago

joshuaherrera commented 3 years ago

This PR resolves #81 .

Since the revert command relied on the key to get the right backup, I had to make some changes to that logic as well. I decided to always ensure the backup filename matches the current file, which meant when a project filename is changed, so is the backup file.

I also had to make a change to the BackupRecord function so that it takes a Record type instead of a string as an argument. This change will effect how the revert works with the records as well, so my other PR that resolves #89 is effected by this change.