summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-01-01WIPimag-ref/moveMatthias Beyer
2020-01-01Add MutRefWithHasher::rename_file(), which requires Ref impl in its own implMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-01Impl Ref for MutRefWithHasherMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-01Update copyright years to 2015-2020Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-25Rewrite "show" Command to be able to read ids from stdinMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-25Fix: Remove Box::leak() call in runtime application abstractionMatthias Beyer
This patch removes the leakage in the runtime application abstraction. Also fix formatting. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-24Fix: Make "list" default command of imag-tagMatthias Beyer
The "list" command is advertised as default command for imag-tag. This commit fixes the implementation so that the binary actually behaves this way. For this, the list() function gets a new parameter which tells it whether there is a subcommand object to be expected in the Runtime. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-24Fix: Drop habit before getting instancesMatthias Beyer
Because when showing an instance, we try to get the comment for the instance from the habit template, which tries to Store::get() the template in HabitInstance::get_comment(). This fails if the template is already borrowed, thus drop the borrow before the whole thing. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-24Fix: Date in documentationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 343a409df938d3fb9197b5aa8f7d551b1a8dd151)
2019-12-24Fix: Specify versionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 14cf7b88a94ec2e104180af1392bb43eb7adf698)
2019-12-24Add changelog for v0.10.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 900c95e4524125e9887b5fbc0135687fd60151aa)
2019-12-23travis: Fail if clippy finds something, deny all warningsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unused lifetimeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Use closure as suggested by clippyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary to_string() callsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove lifetime specificationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone().to_string() callsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove len() != 0 comparison with negation and ::is_empty() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary return keywordMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary return keywordMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove identical conversionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary let bindingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary return keywordMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove main() in doctestMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Merge branch 'replace-map-dbg-err' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove DebugResult and DebugOption helpersMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Replace map_dbg() and map_dbg_str() with context() and inspect() callsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Replace map_dbg_err() calls with context() callsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Merge branch 'cargo-deny' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Merge branch 'report-ids-ignore-broken-pipe' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22travis: Add license check using cargo-denyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Add configuration for cargo-denyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Add missing license keyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Remove error conversion which is not necessary anymore.Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Fix: Ignore broken pipe when reporting idsMatthias Beyer
This fixes a bug where a broken pipe in Runtime::report_touched() resulted in an Err(_) raised up to main() which then reported this. But as report_touched() should ignore a broken pipe (because the program will exit anyways shortly after the call), we can safely ignore this error. This also results in `ExitCode` removed from the function signature, which pushes us forward to the removal of custom error-handling implementations! Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Merge branch 'imag-bookmark/open' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Merge branch 'imag-wiki/noexit' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Add open command for imag-bookmarkMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite imag-wiki to propagate errors instead of calling exit()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Remove unused importsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Fix: Use unwrap_or_else(panic!(...)) as recommended by clippyMatthias Beyer
instead of expect()ing errors, clippy suggests to use unwrap_or_else(|| panic!(...)) - use that instead Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Call clone() as late as possibleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Do not call into_iter() when iter() is sufficientMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Do not call clone() on a Copy typeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite if-let binding to simple ifMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>