summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-01-13 14:36:13 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-01-13 14:36:31 +0100
commit5beadbbf5b03c3e5a48a54f592ab067605a8d038 (patch)
tree7f9b16088c0b424784259eaf1039047c2ecc547d
parent284f12e8cb2503915ab9040d674f9c3bb72ec82c (diff)
downloadimag-5beadbbf5b03c3e5a48a54f592ab067605a8d038.zip
imag-5beadbbf5b03c3e5a48a54f592ab067605a8d038.tar.gz
Call default command if no command is passed
-rw-r--r--bin/domain/imag-timetrack/src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/domain/imag-timetrack/src/main.rs b/bin/domain/imag-timetrack/src/main.rs
index cdfd979..55a8d01 100644
--- a/bin/domain/imag-timetrack/src/main.rs
+++ b/bin/domain/imag-timetrack/src/main.rs
@@ -45,7 +45,7 @@ mod year;
use cont::cont;
use day::day;
-use list::list;
+use list::{list, list_impl};
use month::month;
use start::start;
use stop::stop;
@@ -81,8 +81,9 @@ fn main() {
},
}
} else {
- error!("No command");
- 1
+ let start = ::chrono::offset::Local::today().naive_local().and_hms(0, 0, 0);
+ let end = ::chrono::offset::Local::today().naive_local().and_hms(23, 59, 59);
+ list_impl(&rt, Some(start), Some(end), false)
};
::std::process::exit(retval);