Matthias Beyer
afe275692e
Fix: Do not use deprecated StoreId::exists() function
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-09 01:03:28 +01:00
Matthias Beyer
e4ef6f0649
Remove log-destination-override features
...
This removes the feature to be able to override log destinations from
the commandline.
This feature is removed because the --override-config feature from the
runtime already contains this functionality. It is a little more complex
to use, though this is a feature hardly used at all, so I rather go for
less code (less complexity) here than feature bloat.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-05 01:03:39 +01:00
Matthias Beyer
4c0baa58f4
Add argument forwarding for --ignore-ids
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-05 00:59:30 +01:00
Matthias Beyer
3fbfb19419
Add runtime feature: Ignore id reporting
...
This feature gives the users of the Runtime API the possibility to check
whether the user wants the ID reporting to be ignored as well (and more
important) to override the default behaviour where the runtime assumes
that if STDOUT is a pipe, it is a pipe to an imag command.
Before, this would not have been possible:
imag contact find Jonas --json | jq 'map(.fullname)'
because the runtime automatically prints the output of the command to
stderr and the touched IDs to stdout.
But now with this change, a user can override this default behaviour and
do:
imag contact --ignore-ids find Jonas --json | jq 'map(.fullname)'
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-05 00:55:30 +01:00
Matthias Beyer
b010d69e62
Update rustc
...
We need 1.31 because some dependencies use the new clippy macros.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-01-03 18:41:36 +01:00
Matthias Beyer
9185abcfa5
Update copyright years
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-01-03 18:41:36 +01:00
Matthias Beyer
4fe7fd366c
Add Store::exists() for checking whether a StoreId exists as Entry
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-12-13 22:49:33 +01:00
Matthias Beyer
ccd8e94fbf
Update travis rustc version
...
1.29.x does not work anymore because a dependency fails to compile with
it.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-12-13 22:49:08 +01:00
Matthias Beyer
37ac37f22e
Merge branch 'minor'
2018-12-03 01:09:03 +01:00
Matthias Beyer
115002971d
travis: Update rustc
...
because `encoding-rs` seems to need 1.29 as minimum version of the rust
compiler.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-26 20:16:35 +01:00
Matthias Beyer
d70a97191c
Simplify Display impl for Storeid
2018-11-26 18:21:28 +01:00
Matthias Beyer
1ce780795a
Do not use StoreId::local() here
2018-11-26 18:19:10 +01:00
Matthias Beyer
dd388e53bb
Reimplement StoreId::to_str() without erroring
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-26 18:15:08 +01:00
Matthias Beyer
49b0b3a414
Merge branch 'forbid-unsafe'
...
With this merge, there is no longer unsafe code in the imag repository.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-11 14:28:04 +01:00
Matthias Beyer
496c06d15a
Update lazy_static to 1.2
...
1.2 of lazy_static brings functionality to have no panics in the code,
which is what we try to have.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-11 13:05:55 +01:00
Matthias Beyer
9fca66aa89
Forbid unsafe code in all crates
2018-11-11 13:05:55 +01:00
Matthias Beyer
4e516ee19d
Update version strings
...
...for the next release, which will be imag 0.10.0!
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-10 11:56:37 +01:00
Matthias Beyer
4fd2feb6f3
Merge branch 'prepare-0.9.0'
...
This merge marks the release 0.9.0 of the imag distribution.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-10 10:01:12 +01:00
Matthias Beyer
17d4123898
Update dependencies from git versions to proper versions.
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 22:14:11 +01:00
Matthias Beyer
dfba366a89
Add changelog for 0.9.0
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 22:14:11 +01:00
Matthias Beyer
47707bf593
Merge branch 'minor'
2018-11-09 22:11:39 +01:00
Matthias Beyer
ed08e2ccf9
Update examples
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:26 +01:00
Matthias Beyer
093363f7e1
Add end-date for vacation
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:26 +01:00
Matthias Beyer
332fd5dd8b
Remove code of conduct, we use the Rust CoC.
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:26 +01:00
Matthias Beyer
b3b32077a5
Remove empty section
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:26 +01:00
Matthias Beyer
35291d68ad
Make code more idomatic
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:26 +01:00
Matthias Beyer
a2eae99a39
Rewrite debug calls with DebugOption extension
2018-11-09 21:48:26 +01:00
Matthias Beyer
2cb46597f7
Add Option extensions for logging optional values
...
This patch adds the same extensions that we already have for
Result<T, E> also for Option<T>.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:26 +01:00
Matthias Beyer
c767e6239e
Remove unused parameter
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:26 +01:00
Matthias Beyer
9cfa9fc399
Make code more idomatic
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:25 +01:00
Matthias Beyer
ed469f622a
Make code more idomatic
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 21:48:02 +01:00
Matthias Beyer
8d0ae1058e
Make code more functional by more function chaining
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 13:51:42 +01:00
Matthias Beyer
07cbecc1ba
Make code more functional by more function chaining.
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 13:51:28 +01:00
Matthias Beyer
d8a6e9ca9a
Rewrite iteration without collecting inbetween
...
Because why not?
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 12:48:35 +01:00
Matthias Beyer
8e1768b424
Refactor code to be more idomatic
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 11:52:31 +01:00
Matthias Beyer
ecf4cead93
Merge branch 'runtime-io-story'
...
This merge introduces the new runtime IO system, finally!
Now, piping imag commands into eachother as well as using standard unix
tools for piping is possible! Awesome!
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 21:26:56 +01:00
Matthias Beyer
345970d36b
Import new dependencies
...
Because of the changes in the "src/ui.rs" files in the binary
implementations, we have new dependencies we need to import into the
build-script of the "imag" command, so that it can build the
commandline.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 20:35:18 +01:00
Matthias Beyer
f6483f54db
Add ID reporting in imag-timetrack
2018-11-06 20:35:18 +01:00
Matthias Beyer
be56f9fe75
Add ID reporting in imag-mail
2018-11-06 20:35:18 +01:00
Matthias Beyer
f20298cbe8
Add ID reporting in imag-store
2018-11-06 20:35:18 +01:00
Matthias Beyer
c616a5cfaf
Add ID reporting in imag-ref
2018-11-06 20:35:18 +01:00
Matthias Beyer
502cdf5721
Add ID reporting in imag-habit
2018-11-06 20:35:18 +01:00
Matthias Beyer
96ad41ea4c
Add ID reporting in imag-mv
2018-11-06 20:35:18 +01:00
Matthias Beyer
f3a03efd5d
Add ID reporting in imag-wiki
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 20:35:18 +01:00
Matthias Beyer
029a3c448e
Change WikiStore::create_wiki() interface
...
to also return the index page. This way a user of the library can use
the index page entry right away.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 20:35:18 +01:00
Matthias Beyer
860c58cbdf
Add ID reporting in imag-log
2018-11-06 20:35:18 +01:00
Matthias Beyer
eceae358f8
Add ID reporting in imag-notes
2018-11-06 20:35:18 +01:00
Matthias Beyer
2ca6be8322
Add id reporting in imag-diary
2018-11-06 20:35:18 +01:00
Matthias Beyer
8523ae2120
Add id reporting in imag-contact
2018-11-06 20:34:46 +01:00
Matthias Beyer
344aae5f92
Add ID reporting in imag-bookmark
2018-11-06 20:33:30 +01:00