Commit Graph

41 Commits

Author SHA1 Message Date
Abraham Toriz 086feb0e0b
allow to set a per-command default formatter 2022-08-29 19:45:45 -04:00
Abraham Toriz bfef1004e3
explain in message how to silence timetrap warning 2022-08-29 19:03:11 -04:00
Abraham Toriz bc0f4236ac
use assert_str_eq 2022-08-01 22:04:22 +08:00
Abraham Toriz 256f622a57
upgrade pretty assertions to 1.2 2022-07-19 18:38:37 +08:00
Abraham Toriz 23cc987266
database returns default sheet even it there is no record 2022-05-08 11:36:03 +08:00
Abraham Toriz 375d7d4e06
pass clippy 2022-05-06 22:04:36 +08:00
Abraham Toriz 8b6d9be92e
some clippy lints 2021-12-13 14:22:05 -06:00
Abraham Toriz d3128a93bf
most of the infrastructure for custom formatters 2021-09-06 20:08:53 -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 751f4aa750 respect the default_formatter config 2021-08-19 21:11:18 -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 b767d9e476
implement old database handling for t edit 2021-08-04 18:27:08 -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 e948f87af8
implement t sheet 2021-07-23 20:37:21 -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 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 274152932f
add as tests some missing things 2021-07-07 13:43:42 -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 a56df91b58
some date parsing magic 2021-07-02 10:07:07 -05:00
Abraham Toriz 3dfefedb75
introducing the timeparse module 2021-07-01 23:44:09 -05:00
Abraham Toriz fdc45cea3f
allow to filter by start and end 2021-06-30 19:20:10 -05:00
Abraham Toriz 3505ee396c
ignore some tests for now 2021-06-30 13:31:38 -05:00
Abraham Toriz af2a18c8db
local timezone and timetrap database management 2021-06-29 18:20:51 -05:00
Abraham Toriz bd10e8582a
test display with old databases 2021-06-29 12:04:54 -05:00
Abraham Toriz c7de36e3f8
pass stderr to commands 2021-06-29 12:02:33 -05:00
Abraham Toriz 5d3b50d552
get the actual terminal width 2021-06-28 23:40:41 -05:00
Abraham Toriz e59211f1f9
display the text of long notes nicely 2021-06-28 19:32:29 -05:00
Abraham Toriz 2ebe0a40a4
ids can be show 2021-06-25 14:05:35 -05:00
Abraham Toriz 4d48386777
give up own time module, progress on display command 2021-06-24 00:07:52 -05:00
Abraham Toriz 464925a8b6
move time to its own module 2021-06-22 11:30:41 -05:00
Abraham Toriz bfe80c10e1
display all, full, sheet and current active 2021-06-21 19:54:10 -05:00
Abraham Toriz a29c3c40ab
be able to query entries 2021-06-21 17:38:51 -05:00
Abraham Toriz 1655803076
a good start for this project 2021-06-18 11:27:19 -05:00