8c1b4124c0
Handle unknown subcommands in binaries with Runtime::handle_unknown_subcommand
2018-04-04 19:34:13 +02:00
bcdfe3ceea
Use variable mutable, so we can create an instance
2018-03-22 21:32:58 +01:00
00d485c3d3
Add parameter to show done habits
2018-03-22 14:36:51 +01:00
50461b839a
Use output stream from Runtime::stdout()
2018-03-04 13:57:44 +01:00
027c4b3287
Remove usage of libimagentrylist
2018-02-20 15:02:46 +01:00
5e78a43242
Fix for broken pipe panics
2018-02-19 11:14:18 +01:00
b61547c2d1
Add debug output what is about to be done
2018-02-18 20:03:50 +01:00
9469693763
Use new make_imag_version!() macro for building version string
2018-02-13 11:38:34 +01:00
9f48071e48
Do not print "Ok" after successful execution
2018-02-10 16:41:27 +01:00
d5a9e4930d
Update dates in license header
...
And add missing header in one file
2018-02-07 02:48:53 +01:00
4d94791b1f
Move date <-> string conversion utility to libimagutil
2018-02-01 09:26:33 +01:00
bfc35e0517
Remove dependency "version"
...
Because the "version" crate is licensed as GPL, which would us require
to release imag as GPL, we remove the crate now.
2018-01-12 13:33:40 +01:00
05a630f943
Change UI. Positional args are not possible here
2017-12-22 14:40:01 +01:00
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