summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-31 15:47:43 +0100
committerGitHub <noreply@github.com>2017-10-31 15:47:43 +0100
commit2d94be583180e4f8025e2aa1d2120b2ba925c41c (patch)
tree78515adccdc10cce12fec023dd5b3ff535d97d24 /bin
parent429194b5d05cc8bca93e1c33ab2c374b33a9ca40 (diff)
parentf82ad2b6d1db3dbc84e1af4a2a4dabf23e31b1cc (diff)
downloadimag-2d94be583180e4f8025e2aa1d2120b2ba925c41c.zip
imag-2d94be583180e4f8025e2aa1d2120b2ba925c41c.tar.gz
Merge pull request #1144 from matthiasbeyer/minor
Minor
Diffstat (limited to 'bin')
-rw-r--r--bin/core/imag-annotate/Cargo.toml6
-rw-r--r--bin/core/imag-gps/Cargo.toml6
-rw-r--r--bin/core/imag-grep/Cargo.toml6
-rw-r--r--bin/core/imag-link/Cargo.toml6
-rw-r--r--bin/core/imag-mv/Cargo.toml6
-rw-r--r--bin/core/imag-ref/Cargo.toml6
-rw-r--r--bin/core/imag-store/Cargo.toml6
-rw-r--r--bin/core/imag-store/src/retrieve.rs2
-rw-r--r--bin/core/imag-tag/Cargo.toml6
-rw-r--r--bin/core/imag-view/Cargo.toml6
-rw-r--r--bin/core/imag/Cargo.toml6
-rw-r--r--bin/core/imag/src/main.rs4
-rw-r--r--bin/domain/imag-bookmark/Cargo.toml6
-rw-r--r--bin/domain/imag-bookmark/src/main.rs2
-rw-r--r--bin/domain/imag-diary/Cargo.toml6
-rw-r--r--bin/domain/imag-mail/Cargo.toml6
-rw-r--r--bin/domain/imag-notes/Cargo.toml6
-rw-r--r--bin/domain/imag-timetrack/Cargo.toml6
-rw-r--r--bin/domain/imag-timetrack/src/day.rs6
-rw-r--r--bin/domain/imag-timetrack/src/list.rs6
-rw-r--r--bin/domain/imag-timetrack/src/month.rs6
-rw-r--r--bin/domain/imag-timetrack/src/week.rs6
-rw-r--r--bin/domain/imag-timetrack/src/year.rs6
-rw-r--r--bin/domain/imag-todo/Cargo.toml6
24 files changed, 115 insertions, 19 deletions
diff --git a/bin/core/imag-annotate/Cargo.toml b/bin/core/imag-annotate/Cargo.toml
index f76e8f1..aabeffa 100644
--- a/bin/core/imag-annotate/Cargo.toml
+++ b/bin/core/imag-annotate/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/core/imag-gps/Cargo.toml b/bin/core/imag-gps/Cargo.toml
index 3824e51..1314f77 100644
--- a/bin/core/imag-gps/Cargo.toml
+++ b/bin/core/imag-gps/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/core/imag-grep/Cargo.toml b/bin/core/imag-grep/Cargo.toml
index f56ba32..4525cb7 100644
--- a/bin/core/imag-grep/Cargo.toml
+++ b/bin/core/imag-grep/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
version = "2.0.1"
diff --git a/bin/core/imag-link/Cargo.toml b/bin/core/imag-link/Cargo.toml
index 12ab562..68344aa 100644
--- a/bin/core/imag-link/Cargo.toml
+++ b/bin/core/imag-link/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/core/imag-mv/Cargo.toml b/bin/core/imag-mv/Cargo.toml
index d3eaf1d..4eb2c98 100644
--- a/bin/core/imag-mv/Cargo.toml
+++ b/bin/core/imag-mv/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
version = "2.0"
clap = ">=2.17"
diff --git a/bin/core/imag-ref/Cargo.toml b/bin/core/imag-ref/Cargo.toml
index 1e19add..3faf611 100644
--- a/bin/core/imag-ref/Cargo.toml
+++ b/bin/core/imag-ref/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/core/imag-store/Cargo.toml b/bin/core/imag-store/Cargo.toml
index feee3a6..ad3c207 100644
--- a/bin/core/imag-store/Cargo.toml
+++ b/bin/core/imag-store/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/core/imag-store/src/retrieve.rs b/bin/core/imag-store/src/retrieve.rs
index 5c664f9..905fe98 100644
--- a/bin/core/imag-store/src/retrieve.rs
+++ b/bin/core/imag-store/src/retrieve.rs
@@ -35,7 +35,7 @@ pub fn retrieve(rt: &Runtime) {
let id = scmd.value_of("id").unwrap();
let path = PathBuf::from(id);
let store = Some(rt.store().path().clone());
- let path = try!(StoreId::new(store, path).map_err_trace_exit(1));
+ let path = StoreId::new(store, path).map_err_trace_exit(1)?;
debug!("path = {:?}", path);
rt.store()
diff --git a/bin/core/imag-tag/Cargo.toml b/bin/core/imag-tag/Cargo.toml
index 969bbcd..0d8b790 100644
--- a/bin/core/imag-tag/Cargo.toml
+++ b/bin/core/imag-tag/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/core/imag-view/Cargo.toml b/bin/core/imag-view/Cargo.toml
index 7a3bcff..488f2f6 100644
--- a/bin/core/imag-view/Cargo.toml
+++ b/bin/core/imag-view/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/core/imag/Cargo.toml b/bin/core/imag/Cargo.toml
index 9249bee..140cd12 100644
--- a/bin/core/imag/Cargo.toml
+++ b/bin/core/imag/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
version = "2.0"
walkdir = "1"
diff --git a/bin/core/imag/src/main.rs b/bin/core/imag/src/main.rs
index 0b75574..0047f25 100644
--- a/bin/core/imag/src/main.rs
+++ b/bin/core/imag/src/main.rs
@@ -254,12 +254,12 @@ fn main() {
}
fn fetch_aliases(rt: &Runtime) -> Result<BTreeMap<String, String>, String> {
- let cfg = try!(rt.config().ok_or_else(|| String::from("No configuration found")));
+ let cfg = rt.config().ok_or_else(|| String::from("No configuration found"))?;
let value = cfg
.read("imag.aliases")
.map_err(|_| String::from("Reading from config failed"));
- match try!(value) {
+ match value? {
None => Ok(BTreeMap::new()),
Some(&Value::Table(ref tbl)) => {
let mut alias_mappings = BTreeMap::new();
diff --git a/bin/domain/imag-bookmark/Cargo.toml b/bin/domain/imag-bookmark/Cargo.toml
index 1f49202..13b6f73 100644
--- a/bin/domain/imag-bookmark/Cargo.toml
+++ b/bin/domain/imag-bookmark/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/domain/imag-bookmark/src/main.rs b/bin/domain/imag-bookmark/src/main.rs
index 7f2131c..3529b0e 100644
--- a/bin/domain/imag-bookmark/src/main.rs
+++ b/bin/domain/imag-bookmark/src/main.rs
@@ -88,7 +88,7 @@ fn add(rt: &Runtime) {
BookmarkCollection::get(rt.store(), &coll)
.and_then(|mut collection| {
for url in scmd.values_of("urls").unwrap() { // unwrap saved by clap
- let _ = try!(collection.add_link(BookmarkLink::from(url)));
+ let _ = collection.add_link(BookmarkLink::from(url))?;
}
Ok(())
})
diff --git a/bin/domain/imag-diary/Cargo.toml b/bin/domain/imag-diary/Cargo.toml
index 606ca0b..a1ad5a4 100644
--- a/bin/domain/imag-diary/Cargo.toml
+++ b/bin/domain/imag-diary/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
chrono = "0.4"
version = "2.0"
diff --git a/bin/domain/imag-mail/Cargo.toml b/bin/domain/imag-mail/Cargo.toml
index f758314..bc05582 100644
--- a/bin/domain/imag-mail/Cargo.toml
+++ b/bin/domain/imag-mail/Cargo.toml
@@ -9,6 +9,12 @@ keywords = ["imag", "PIM", "personal", "information", "management"]
readme = "../../../README.md"
license = "LGPL-2.1"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/domain/imag-notes/Cargo.toml b/bin/domain/imag-notes/Cargo.toml
index 246010b..0e97826 100644
--- a/bin/domain/imag-notes/Cargo.toml
+++ b/bin/domain/imag-notes/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/domain/imag-timetrack/Cargo.toml b/bin/domain/imag-timetrack/Cargo.toml
index c8ad0d7..52938e1 100644
--- a/bin/domain/imag-timetrack/Cargo.toml
+++ b/bin/domain/imag-timetrack/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"
diff --git a/bin/domain/imag-timetrack/src/day.rs b/bin/domain/imag-timetrack/src/day.rs
index bd76867..2925122 100644
--- a/bin/domain/imag-timetrack/src/day.rs
+++ b/bin/domain/imag-timetrack/src/day.rs
@@ -88,13 +88,13 @@ pub fn day(rt: &Runtime) -> i32 {
acc.and_then(|_| {
debug!("Processing {:?}", e.get_location());
- let tag = try!(e.get_timetrack_tag());
+ let tag = e.get_timetrack_tag()?;
debug!(" -> tag = {:?}", tag);
- let start = try!(e.get_start_datetime());
+ let start = e.get_start_datetime()?;
debug!(" -> start = {:?}", start);
- let end = try!(e.get_end_datetime());
+ let end = e.get_end_datetime()?;
debug!(" -> end = {:?}", end);
match (start, end) {
diff --git a/bin/domain/imag-timetrack/src/list.rs b/bin/domain/imag-timetrack/src/list.rs
index 25c0ce0..109a7ae 100644
--- a/bin/domain/imag-timetrack/src/list.rs
+++ b/bin/domain/imag-timetrack/src/list.rs
@@ -91,13 +91,13 @@ pub fn list(rt: &Runtime) -> i32 {
acc.and_then(|_| {
debug!("Processing {:?}", e.get_location());
- let tag = try!(e.get_timetrack_tag());
+ let tag = e.get_timetrack_tag()?;
debug!(" -> tag = {:?}", tag);
- let start = try!(e.get_start_datetime());
+ let start = e.get_start_datetime()?;
debug!(" -> start = {:?}", start);
- let end = try!(e.get_end_datetime());
+ let end = e.get_end_datetime()?;
debug!(" -> end = {:?}", end);
match (start, end) {
diff --git a/bin/domain/imag-timetrack/src/month.rs b/bin/domain/imag-timetrack/src/month.rs
index 80ddd8f..144b109 100644
--- a/bin/domain/imag-timetrack/src/month.rs
+++ b/bin/domain/imag-timetrack/src/month.rs
@@ -103,13 +103,13 @@ pub fn month(rt: &Runtime) -> i32 {
acc.and_then(|_| {
debug!("Processing {:?}", e.get_location());
- let tag = try!(e.get_timetrack_tag());
+ let tag = e.get_timetrack_tag()?;
debug!(" -> tag = {:?}", tag);
- let start = try!(e.get_start_datetime());
+ let start = e.get_start_datetime()?;
debug!(" -> start = {:?}", start);
- let end = try!(e.get_end_datetime());
+ let end = e.get_end_datetime()?;
debug!(" -> end = {:?}", end);
match (start, end) {
diff --git a/bin/domain/imag-timetrack/src/week.rs b/bin/domain/imag-timetrack/src/week.rs
index 39acdf1..1043989 100644
--- a/bin/domain/imag-timetrack/src/week.rs
+++ b/bin/domain/imag-timetrack/src/week.rs
@@ -95,13 +95,13 @@ pub fn week(rt: &Runtime) -> i32 {
acc.and_then(|_| {
debug!("Processing {:?}", e.get_location());
- let tag = try!(e.get_timetrack_tag());
+ let tag = e.get_timetrack_tag()?;
debug!(" -> tag = {:?}", tag);
- let start = try!(e.get_start_datetime());
+ let start = e.get_start_datetime()?;
debug!(" -> start = {:?}", start);
- let end = try!(e.get_end_datetime());
+ let end = e.get_end_datetime()?;
debug!(" -> end = {:?}", end);
match (start, end) {
diff --git a/bin/domain/imag-timetrack/src/year.rs b/bin/domain/imag-timetrack/src/year.rs
index 11b0197..a5ce27f 100644
--- a/bin/domain/imag-timetrack/src/year.rs
+++ b/bin/domain/imag-timetrack/src/year.rs
@@ -94,13 +94,13 @@ pub fn year(rt: &Runtime) -> i32 {
acc.and_then(|_| {
debug!("Processing {:?}", e.get_location());
- let tag = try!(e.get_timetrack_tag());
+ let tag = e.get_timetrack_tag()?;
debug!(" -> tag = {:?}", tag);
- let start = try!(e.get_start_datetime());
+ let start = e.get_start_datetime()?;
debug!(" -> start = {:?}", start);
- let end = try!(e.get_end_datetime());
+ let end = e.get_end_datetime()?;
debug!(" -> end = {:?}", end);
match (start, end) {
diff --git a/bin/domain/imag-todo/Cargo.toml b/bin/domain/imag-todo/Cargo.toml
index bcf8bea..994857c 100644
--- a/bin/domain/imag-todo/Cargo.toml
+++ b/bin/domain/imag-todo/Cargo.toml
@@ -13,6 +13,12 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+[badges]
+travis-ci = { repository = "matthiasbeyer/imag" }
+is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
+is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
+maintenance = { status = "actively-developed" }
+
[dependencies]
clap = ">=2.17"
log = "0.3"