Commit Graph

179 Commits

Author SHA1 Message Date
Abraham Toriz d7d66d03ae
improve help on t s 2021-09-17 12:41:43 -05:00
Abraham Toriz 422d6bb593
first feed the input, then read its output 2021-09-07 14:03:51 -05:00
Abraham Toriz 56e7c525a4
use strings instead of vecs to read childs stdio 2021-09-06 20:53:50 -05:00
Abraham Toriz b90400a1c7
pass formatter config to formatter 2021-09-06 20:53:18 -05:00
Abraham Toriz d3128a93bf
most of the infrastructure for custom formatters 2021-09-06 20:08:53 -05:00
Abraham Toriz ad60776949 a type error 2021-08-25 16:51:04 -05:00
Abraham Toriz b9b970f2ae bold non zero data in t list 2021-08-25 16:50:07 -05:00
Abraham Toriz 3598f7844c Don't write colorful output except in a colorful terminal 2021-08-25 14:43:50 -05:00
Abraham Toriz ba632c88a3 Command trait redesing 2021-08-25 14:30:27 -05:00
Abraham Toriz f86e936dd2 dim some texts in t list 2021-08-24 23:01:56 -05:00
Abraham Toriz 751f4aa750 respect the default_formatter config 2021-08-19 21:11:18 -05:00
Abraham Toriz 0d0e91942c set name and description from carto.toml 2021-08-14 12:06:07 -05:00
Abraham Toriz 8783df7c37 reorganize fields in config 2021-08-14 11:14:45 -05:00
Abraham Toriz 23a3603628 implement t configure 2021-08-14 11:09:37 -05:00
Abraham Toriz 4ebf0681c2 collapse if block 2021-08-11 20:35:24 -05:00
Abraham Toriz 6d15e54d3f implement archive command 2021-08-11 20:25:32 -05:00
Abraham Toriz 1365d6d466 specify in readme how to use a development database 2021-08-11 20:25:21 -05:00
Abraham Toriz 73a0b62c75 extract ask() into a function and a module 2021-08-11 20:24:42 -05:00
Abraham Toriz d7e98e51a3 start the archive command 2021-08-11 17:55:21 -05:00
Abraham Toriz 3a1ef47b21 test everything in UTC-6 so time difference makes a difference 2021-08-11 17:54:37 -05:00
Abraham Toriz 98a43ea12f
make clippy happy 2021-08-04 18:40:49 -05:00
Abraham Toriz 8b9f510097
prevent editing a tracked database in tests 2021-08-04 18:40:35 -05:00
Abraham Toriz b767d9e476
implement old database handling for t edit 2021-08-04 18:27:08 -05:00
Abraham Toriz bbc691c79f
almost complete implementation of t edit 2021-08-03 20:58:26 -05:00
Abraham Toriz 6414930dfb
editor now uses EDITOR env var 2021-08-03 20:57:22 -05:00
Abraham Toriz 3ebe2ca035
rename PrettyString to Ps for brevity 2021-08-03 20:56:40 -05:00
Abraham Toriz b8cfe1ff21
run clippy in CI 2021-08-02 19:13:11 -05:00
Abraham Toriz 5186b7c159
solve a thousand clippy lint errors 2021-08-02 19:10:34 -05:00
Abraham Toriz 7d53546646
implement t now 2021-08-02 18:45:54 -05:00
Abraham Toriz b3864f3b95
fixes in t k usability 2021-07-30 18:01:00 -05:00
Abraham Toriz 63154cc1fc
implement kill command 2021-07-30 17:55:19 -05:00
Abraham Toriz c05897d498
add the at argument for t o 2021-07-30 12:52:06 -05:00
Abraham Toriz fc90f76390
do print the running entries in ical format 2021-07-30 12:08:22 -05:00
Abraham Toriz 744d07b174
finish ical format 2021-07-30 12:01:44 -05:00
Abraham Toriz a6ee7aea5f
start the ical formatter 2021-07-29 22:44:18 -05:00
Abraham Toriz 615caab92a
allow to supress the warning about old database version 2021-07-29 11:01:13 -05:00
Abraham Toriz 5dd87616f8
add ids formatter 2021-07-28 21:16:03 -05:00
Abraham Toriz abd40dea83
simplify and stabilize t resume 2021-07-28 20:51:33 -05:00
Abraham Toriz 9832945005
keep updated the last_checkout_id when moving between sheets 2021-07-27 12:20:58 -05:00
Abraham Toriz 39bc7abf0d
implement format json 2021-07-26 20:32:13 -05:00
Abraham Toriz 8cc1eb1cef
implement backend command 2021-07-26 20:07:11 -05:00
Abraham Toriz 4011cac6e9
the resume command 2021-07-26 16:55:24 -05:00
Abraham Toriz 149aad7a3a
delete test implied by another test 2021-07-23 20:39:08 -05:00
Abraham Toriz e948f87af8
implement t sheet 2021-07-23 20:37:21 -05:00
Abraham Toriz 325f53e6d4
improve errors for IO 2021-07-23 20:01:43 -05:00
Abraham Toriz 88e6c21672
a format thing 2021-07-21 19:07:19 -05:00
Abraham Toriz 9c306d55ce
more specific errors for some IO errors 2021-07-21 19:06:49 -05:00
Abraham Toriz 7bd7e2bcbb
be able to open an editor! 2021-07-20 22:08:07 -05:00
Abraham Toriz b5c383d3c3
the out command 2021-07-20 10:08:04 -05:00
Abraham Toriz acf2e30883
fix handling of the old database for in command 2021-07-17 22:15:03 -05:00
Abraham Toriz ee44b22efd
in command ready!! 2021-07-17 22:04:54 -05:00
Abraham Toriz c942c0a4cc
fix some broken database tests 2021-07-16 18:07:11 -05:00
Abraham Toriz 247ff6ee3c
displaying sheets (all and full) group entries 2021-07-16 17:52:33 -05:00
Abraham Toriz 7292e1d103
add the grand total to format::text 2021-07-16 17:31:30 -05:00
Abraham Toriz f62ebef762
current time management across commands 2021-07-16 12:45:27 -05:00
Abraham Toriz da124869ca
dont actually print spaces if requested 2021-07-16 09:33:45 -05:00
Abraham Toriz 1b57a0b297
sheet delegates to list when no argument is received 2021-07-15 16:36:24 -05:00
Abraham Toriz 54bfa8ce8f
list: compute running and today 2021-07-15 13:11:55 -05:00
Abraham Toriz b531f8ca20
database set current sheet 2021-07-15 11:48:49 -05:00
Abraham Toriz 28f041831b
set columns in t list 2021-07-15 11:48:33 -05:00
Abraham Toriz e703db5189
fix a display test 2021-07-15 11:17:50 -05:00
Abraham Toriz 7007a58df0
formatters::text now uses module tabulate 2021-07-15 11:16:17 -05:00
Abraham Toriz 676dd5f638
finish the tabulate module 2021-07-15 10:33:02 -05:00
Abraham Toriz f04bf6bb1f
support data with line breaks 2021-07-15 09:40:37 -05:00
Abraham Toriz c83552af61
adequate tabulate tests 2021-07-15 00:33:58 -05:00
Abraham Toriz 4116e77a68
abstracting a tabulate module 2021-07-15 00:22:38 -05:00
Abraham Toriz bd6ef57b56
begin with the list command 2021-07-14 12:37:45 -05:00
Abraham Toriz 067aeae0fe
solve some warnings in sheet 2021-07-14 12:37:08 -05:00
Abraham Toriz b20b138ea5
fix an introduced bug 2021-07-13 17:54:20 -05:00
Abraham Toriz 74e9b164c5
give a more detailed error in this case 2021-07-13 17:53:48 -05:00
Abraham Toriz faef02d0a9
handle the error of the malformed time in database 2021-07-13 17:07:07 -05:00
Abraham Toriz 9d6a17b622
replace command with subcommand 2021-07-13 09:11:51 -05:00
Abraham Toriz bcdad1e138
remove a name 2021-07-13 09:11:29 -05:00
Abraham Toriz c3e96a8096
manage t w for begining of week different than monday 2021-07-10 19:08:16 -05:00
Abraham Toriz 0f8ff24d44
add mock subcommand resume 2021-07-10 14:17:59 -05:00
Abraham Toriz 3e67ea0a44
month command accepts current as month 2021-07-10 14:17:20 -05:00
Abraham Toriz 4e0decfd35
a test for later 2021-07-10 13:21:15 -05:00
Abraham Toriz 5ce3de7b6b
implement the month command 2021-07-10 13:20:42 -05:00
Abraham Toriz f5f6a44a4e
implement month command 2021-07-07 13:52:40 -05:00
Abraham Toriz 4154b59310
implement week command 2021-07-07 13:44:19 -05:00
Abraham Toriz 274152932f
add as tests some missing things 2021-07-07 13:43:42 -05:00
Abraham Toriz 763049e7a9
update cli on defining custom formats 2021-07-07 12:12:42 -05:00
Abraham Toriz 99888248e9
refactor main.rs to make it easier to read and extend 2021-07-07 12:10:57 -05:00
Abraham Toriz 07fa6d4f05
a better way of converting between timezones 2021-07-07 11:58:28 -05:00
Abraham Toriz c512e43c96
add yesterday command 2021-07-07 11:58:13 -05:00
Abraham Toriz 72b586d04d
add database tests and solve like 5 bugs 2021-07-07 11:54:18 -05:00
Abraham Toriz 91b98ed6e5
add support for --grep 2021-07-07 10:49:29 -05:00
Abraham Toriz 1bcf09c1f9
namestpace this functions inside display command 2021-07-07 07:19:55 -05:00
Abraham Toriz 1e33117660
today command and refactoring 2021-07-06 22:52:20 -05:00
Abraham Toriz f0e6a2b47d
finish human time parsing 2021-07-05 12:14:09 -05:00
Abraham Toriz 1b34ab89af
remove debug line 2021-07-03 18:20:35 -05:00
Abraham Toriz 7ef5c7be95
create config file and database if they dont exist 2021-07-03 18:17:26 -05:00
Abraham Toriz 1170b39893
abbreviated times 2021-07-03 15:53:56 -05:00
Abraham Toriz 94443e1656
a handful of human formats 2021-07-02 20:40:06 -05:00
Abraham Toriz 253aa0ed99
parse dates and times precisely 2021-07-02 18:34:34 -05:00
Abraham Toriz a56df91b58
some date parsing magic 2021-07-02 10:07:07 -05:00
Abraham Toriz 4980b3df67
simpler syntax 2021-07-01 23:44:54 -05:00
Abraham Toriz 4007983cba
start with the sheet command 2021-07-01 23:44:38 -05:00
Abraham Toriz 3dfefedb75
introducing the timeparse module 2021-07-01 23:44:09 -05:00
Abraham Toriz 9112e7f3cf
properly display notes with accents 2021-07-01 11:45:04 -05:00