Skip to content

Commit

Permalink
Adds todo example files
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Feb 7, 2020
1 parent 1c49c16 commit 3f12af9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TODO_DIR=example
TODO_FILE=example/todo.txt
DONE_FILE=example/done.txt
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.env
/example/*.bak
/Cargo.lock
/target/
**/*.rs.bk
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ edition = "2018"
[dependencies]
cairo-rs = "^0.8"
chrono = "^0.4"
dotenv = "0.15"
dirs-sys = "^0.3"
gdk = "^0.12"
gdk-sys = "^0.9"
Expand Down
1 change: 1 addition & 0 deletions example/done.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x 2016-02-21 (B) Seal ship's cracks with biomatter +Galactica\Repairs
9 changes: 9 additions & 0 deletions example/todo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(A) Make peace between Cylons and humans +PeaceProject
(B) Report to <i>Admiral Adama</i> about FTL @CIC +Galactica\Repairs due:2013-05-24
2016-12-08 Feed Schrodinger's Cat due:2014-02-23
(C) Upgrade jump drives with Cylon technology +Galactica\Repairs
2016-12-12 +Galactica\Repairs Check hull integrity due:2016-12-12
Check for <b>DRADIS</b> contact @CIC
Check if http://google.com is available
Download code from <br/> https://github.com/QTodoTxt/QTodoTxt/archive/master.zip <br/>and give it a try!
Think about <u>future</u> t:2099-12-31
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ mod widgets;
fn main() {
human_panic::setup_panic!();

#[cfg(debug_assertions)]
dotenv::dotenv()
.ok();

if std::env::args().nth(1) == Some("usage".to_string()) {
usage(&std::env::args().nth(0).unwrap());

Expand Down

0 comments on commit 3f12af9

Please sign in to comment.