fd40715b29
Remove calls to exit() and replace them with error propagation up to main()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 16:35:31 +02:00
e7e5d30645
Remove calls to exit() and replace them with error propagation up to main()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 16:35:31 +02:00
6ab5d1d880
Remove calls to exit() and replace them with error propagation up to main()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 16:35:31 +02:00
647ca2fea6
Remove calls to exit() and replace them with error propagation up to main()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 16:35:31 +02:00
b36454ac38
Refactor to not call exit() anywhere
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 16:35:31 +02:00
e259015a61
Remove calls to exit() and replace them with error propagation up to main()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 16:35:31 +02:00
447a73f438
Fix indention
...
It seems Leon messed up here... :-)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 16:23:16 +02:00
ae7a633ab3
Fix: Pass path to ui builder function when creating mock app
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 15:00:37 +02:00
c301b4b0ab
Fix: Pass path to ui builder function when creating mock app
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 15:00:37 +02:00
47ba9fd2eb
Fix: Pass path to ui builder function when creating mock app
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-26 15:00:37 +02:00
Leon Schuermann
26b05b4bb9
imag-calendar: implement ImagApplication & add CLI completion
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:48 +02:00
Leon Schuermann
e66f29187f
imag-create: implement ImagApplication & add CLI completion
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:48 +02:00
Leon Schuermann
82e209bea8
Introduce CLI completion support
...
This is yet another attempt to bring CLI completion to this workspace
project.
It uses the subcommand-libraries implementing the ImagApplication
trait to expose the clap CLI interface. This way, no file import magic
happens, it's all just regular dependencies, which should also work
with a regular `cargo install`.
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
e840d4502c
imag-wiki: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
2a1e78c705
imag-todo: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
e1dbb596a1
imag-timetrack: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
6590a4b8cb
imag-notes: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
870a09f1dc
imag-mail: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
4c918c78c0
imag-log: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
621c5f96f8
imag-habit: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
3e12bd99d4
imag-diary: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
3144080488
imag-contact: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
cb69214e72
imag-bookmark: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
ccbd5a1a52
imag-view: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
a68d1ce839
imag-tag: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
4683b205b6
imag-store: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
fec52bdbc5
imag-ref: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
186b03deea
imag-mv: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
4c9998ca1d
imag-markdown: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
aa851a87f5
imag-link: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
208d6e62e6
imag-init: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
0739fed666
imag-ids: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
97c46da599
imag-header: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
a7d55930d7
imag-grep: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
58ac2caf20
imag-gps: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
bfe15c9157
imag-git: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
861af28724
imag-edit: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
a34450a37e
imag-diagnostics: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
79cfa8d9d8
imag-category: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
Leon Schuermann
ec75892516
imag-annotate: implement ImagApplication
...
Signed-off-by: Leon Schuermann <leon@is.currently.online>
2019-10-26 14:41:31 +02:00
a6bbcd65f4
Change output to not have quotes when printing string, int, float or bool
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-20 15:05:19 +02:00
eb85635bef
Add trace output
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-20 14:48:17 +02:00
cc0f2bf3de
Fix: Add ID reporting
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-13 12:21:47 +02:00
b29afc2dda
Add more debug output
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-13 12:21:41 +02:00
f1ec71431e
Implement show subcommand
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
d40bf2956f
Make helper type derive Debug
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
d201797b98
Add argument to only list events after a certain date
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
d9ac0c0b07
Add argument to only list events before a certain date
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
9801a3c295
Add helper function to parse string with kairos
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
81c6ee8314
Rewrite helper to be less complicated
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
3da1d9e1d9
Refactor to use new helper function
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:44 +02:00
92a0713ed0
Add filtering for past events
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:43 +02:00
14dc03f40f
Enhance listing functionality with handlebars templating
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:26 +02:00
8dbb2f1590
Add basic listing functionality
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:08 +02:00
61f71d67cc
Add example ref configuration for calendar
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:08 +02:00
2e6df0e458
Add imag-calendar
...
This patch adds a imag-calendar command which features only a "import"
command by now.
This can be used to import calendar entries (events) to imag.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-11 21:36:08 +02:00
5edb470a5f
Update dependency: handlebars: 1.1.0 -> 2
2019-10-07 18:18:28 +02:00
07f949056e
Update dependency: env_logger: 0.6.1 -> 0.7
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-07 18:18:28 +02:00
bddd29dfe4
Update dependency: indicatif: 0.11 -> 0.12
2019-10-07 18:06:29 +02:00
ee5348ea23
Update dependency: url: 1.7.2 -> 2
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-10-07 18:05:58 +02:00
fd3b46fa46
Add imag-create plumbing command for creating entries
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-09-28 19:55:35 +02:00
74810d9ccc
Fix: Print processed IDs if output is not a pipe.
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-31 13:44:19 +02:00
flip1995
e2216db41d
Allow some Clippy lints
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
daddea7adf
[No-auto] bin/domain/timetrack: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
4529ebf216
[No-auto] bin/domain/notes: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
3036d87402
[No-auto] bin/domain/mail: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
009539dfd3
[No-auto] bin/domain/log: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
3b941f23e3
[No-auto] bin/domain/habit: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
1bb6f452e9
[No-auto] bin/domain/diary: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
397bcd43d0
[No-auto] bin/domain/contact: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
7a97c02584
[No-auto] bin/domain/bookmark: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:41 +02:00
flip1995
42f6a3040d
[No-auto] bin/core/tag: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
a2d3a8cffc
[No-auto] bin/core/store: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
5b0817bcb6
[No-auto] bin/core/ref: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
4579187549
[No-auto] bin/core/grep: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
0befd68c95
[No-auto] bin/core/gps: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
20de35d91b
[No-auto] bin/core/git: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
d9d82d7441
[No-auto] bin/core/diagnostics: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
cba336e1dd
[No-auto] bin/core/category: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
846304e687
[No-auto] bin/core/annotate: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
3a1f0dde9d
[No-auto] bin/core/imag: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
8562065bea
[Auto] bin/core/wiki: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
e32d82f915
[Auto] bin/core/todo: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
f7f95a651f
[Auto] bin/core/timetrack: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
e0e4d4e720
[Auto] bin/core/notes: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
419a5ffa77
[Auto] bin/core/mail: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
a02883511b
[Auto] bin/core/log: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
c9c7439f92
[Auto] bin/core/habit: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
171757f5ca
[Auto] bin/core/diary: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
5b4b699875
[Auto] bin/core/contact: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
3963e5ec2d
[Auto] bin/core/bookmark: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
3a32be23c5
[Auto] bin/core/view: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
8db954c79a
[Auto] bin/core/tag: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
4d11ad2ac1
[Auto] bin/core/store: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
b8e9c17dc8
[Auto] bin/core/ref: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
ed8f56aa46
[Auto] bin/core/mv: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
8e40f68d32
[Auto] bin/core/markdown: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
c8a68af2ce
[Auto] bin/core/link: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
7fcbacd1de
[Auto] bin/core/init: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00
flip1995
dfa2c97c8d
[Auto] bin/core/header: Fix Clippy warnings
...
Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-28 18:18:40 +02:00