aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2018-10-23 06:56:08 +0200
committerTeddy Wing2018-10-23 06:56:08 +0200
commitadc4a2f7a84967541d9da3c2f8edb2814a59ab59 (patch)
tree3c8a1afccbae5b2ea993912745733b5e7cf80f4a /Cargo.toml
parentaaca041a3eb0938ca00314aeb0ca1799d3804ba5 (diff)
downloaddome-key-map-adc4a2f7a84967541d9da3c2f8edb2814a59ab59.tar.bz2
trial: Implement `do_trial()`
This function serves as the entry point to all trial functionality. When called, it will try to determine the number of days remaining in the trial. * If the trial period is in progress, the number of days remaining will be printed. * If an error is encountered involving the trial file, or the trial has expired, an error message is printed and the program exits. * Finally, if an unrelated error occurs, print the error without exiting. Change `DateTime<Local>`s to `DateTime<FixedOffset>`s in order to have uniform date types. Otherwise we run into trouble when comparing dates and when querying functions with different date typs. TODO: This fails the tests (unless your local timezone is UTC presumably) because the local time gets stripped of its offset and the correct offset gets reapplied, incorrectly shifting the time. Figure out a way to have uniform datetime types without muffing up the timezone offsets.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cf827ac..5867226 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,6 +9,7 @@ cocoa = "0.18.0"
combine = "3.4.0"
core-graphics = "0.17.2"
error-chain = "0.12.0"
+exitcode = "1.1.2"
foreign-types = "0.3.2"
getopts = "0.2.18"
libc = "0.2.43"