psss / did

What did you do last week, month, year?
https://did.readthedocs.io/
GNU General Public License v2.0
246 stars 104 forks source link

`did last friday` - only friday supported? #305

Closed achingbrain closed 3 months ago

achingbrain commented 1 year ago

The last friday command example in the README is neat but unless I'm missing something only friday seems to be supported as a argument?

% did last friday
Status report for the last friday (2023-05-12 to 2023-05-12).
... report here
% did last thursday
 ERROR  Invalid argument: 'thursday'
% did last wednesday
 ERROR  Invalid argument: 'wednesday'
% did last tuesday  
 ERROR  Invalid argument: 'tuesday'

...etc

It'd be really nice any day could be used.

psss commented 1 year ago

Nice idea, sounds good! And should be fairly easy to implement:

https://github.com/psss/did/blob/9ceed73b7f7dcb03b30f267eca70a820b6257dcf/did/base.py#L332-L338

Pull request is welcome :)