dominikbraun / timetrace

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

Add latest alias to `edit record` command #73

Closed FelixTheodor closed 3 years ago

FelixTheodor commented 3 years ago

closes #71

I implemented the latest alias for edit record by writing a new method GetLatestRecord in record.go. Since the fs-methods return sorted slices, it should be ensured that the last element of the slice is also the last created record. If there are no records created yet, an error is returned.

dominikbraun commented 3 years ago

This PR is included in release v0.6.0.