6a7e7f0f12
Add functionality so we can create a habit with a due date
2017-12-22 14:40:01 +01:00
df16d0737e
Adapt for new API of Habit::next_instance_date()
...
With cd8f0beae8
the interface of `HabitTemplate::next_instance_date()` changed to return
a `Result<Option<_>>` rather than a `Result<_>` because the
next_instance_date could be a None if the Habit was closed already.
This patch adapts imag-habit for this new interface.
2017-12-22 14:40:01 +01:00
501f67dcf2
Add more output in today()
2017-12-22 14:40:01 +01:00
496850a762
Add future-check in CLI and fix for default command invokation
2017-12-22 14:40:01 +01:00
39a983f6fb
Add more details to default command
2017-12-22 14:40:01 +01:00
7cf46f99d4
Add done
functionality
2017-12-22 14:40:01 +01:00
b78095d8bc
Impl delete()
2017-12-22 14:40:01 +01:00
ff39a450b1
Explicitely state that printing an empty table is forbidden
2017-12-22 14:40:01 +01:00
404d839310
Make "today" the default command
2017-12-22 14:40:01 +01:00
0fa1ae28f8
Let "today" command list upcoming habits
2017-12-22 14:40:01 +01:00
5574764d83
Add a subcommand to list habits due today
2017-12-22 14:40:01 +01:00
2520635cae
Add support for listing the next date when the habit must be done
2017-12-22 14:40:01 +01:00
6e7414a2fd
Implement show()
2017-12-22 14:40:01 +01:00
915b1325d2
Implement list()
2017-12-22 14:40:01 +01:00
528b30c1ff
Implement create()
2017-12-22 14:40:01 +01:00
d1848e9186
Add CLI spec
2017-12-22 14:40:01 +01:00
be79f6373e
Import crate for imag-habit
2017-12-22 14:40:01 +01:00