50 Commits

Author SHA1 Message Date
33023d29f9 configuration: made 'default' AI ID optional 2023-09-11 13:09:45 +02:00
66908f5fed message: fixed matching with empty tag sets 2023-09-11 13:09:45 +02:00
cc76da2ab3 chat: added 'update_messages()' function and test 2023-09-11 13:09:44 +02:00
f99cd3ed41 question_cmd: fixed source code extraction and added a testcase 2023-09-11 13:09:44 +02:00
Oleksandr Kozachuk
6f3ea98425 Small fixes. 2023-09-11 13:09:44 +02:00
Oleksandr Kozachuk
86eebc39ea Allow in question -s for just sourcing file and -S to source file with ``` encapsulation. 2023-09-11 13:09:44 +02:00
3eca53998b question cmd: added tests 2023-09-11 13:09:44 +02:00
c52713c833 configuration: added tests 2023-09-11 13:09:44 +02:00
61e710a4b1 cmm: splitted commands into separate modules (and more cleanup) 2023-09-11 13:09:41 +02:00
21d39c6c66 cmm: removed all the old code and modules 2023-09-11 13:08:45 +02:00
d6bb5800b1 test_main: temporarily disabled all testcases 2023-09-11 13:07:46 +02:00
034e4093f1 cmm: added 'question' command 2023-09-11 13:07:46 +02:00
4c378dde85 cmm: the 'hist' command now uses the new 'ChatDB' 2023-09-11 13:05:33 +02:00
8923a13352 cmm: the 'tags' command now uses the new 'ChatDB' 2023-09-11 13:04:08 +02:00
e1414835c8 chat: added functions for finding and deleting messages 2023-09-11 13:04:08 +02:00
abb7fdacb6 message / chat: output improvements 2023-09-11 13:04:08 +02:00
2e2228bd60 chat: new possibilites for adding messages and better tests 2023-09-11 13:04:08 +02:00
713b55482a message: added rename_tags() function and test 2023-09-11 13:04:08 +02:00
aba3eb783d message: improved robustness of Question and Answer content checks and tests 2023-09-11 13:04:08 +02:00
8e63831701 chat: added clear_cache() function and test 2023-09-11 13:04:08 +02:00
c318b99671 chat: improved history printing 2023-09-11 13:04:08 +02:00
b22a4b07ed chat: added tags_frequency() function and test 2023-09-11 13:04:08 +02:00
815a21893c added tests for 'chat.py' 2023-09-11 13:04:08 +02:00
a093f9b867 tags: some clarification and new tests 2023-09-11 13:04:08 +02:00
dc3f3dc168 added 'message_in()' function and test 2023-09-11 13:04:08 +02:00
74c39070d6 fixed Message.filter_tags 2023-09-11 13:04:08 +02:00
fde0ae4652 fixed test case file cleanup 2023-09-11 13:04:08 +02:00
238dbbee60 fixed handling empty tags in TXT file 2023-09-11 13:04:08 +02:00
17f7b2fb45 Added tags filtering (prefix and contained string) to TagLine and Message 2023-09-11 13:04:08 +02:00
9c2598a4b8 tests: added testcases for Message.from/to_file() and others 2023-09-11 13:04:08 +02:00
acec5f1d55 tests: splitted 'test_main.py' into 3 modules 2023-09-11 13:04:08 +02:00
30ccec2462 tags: TagLine constructor now supports multiline taglines and multiple spaces 2023-09-11 13:04:08 +02:00
33567df15f added testcases for messages.py 2023-09-11 13:04:08 +02:00
2d456e68f1 added testcases for Tag and TagLine classes 2023-09-11 13:04:08 +02:00
a5c91adc41 configuration: minor improvements / fixes
Could not extend the subclass of 'TypedDict' the way I wanted, so I switched to 'dataclass'.
2023-08-17 07:46:47 +02:00
e8343fde01 test_main: added type annotations and a helper class / function 2023-08-16 11:15:48 +02:00
a5075b14a0 added short aliases for subcommands 2023-08-13 08:41:59 +02:00
c4a7c07a0c fixed tests 2023-08-12 14:16:16 +02:00
Oleksandr Kozachuk
6ed459be6f Fix tests. 2023-08-12 13:17:10 +02:00
056bf4c6b5 fixed almost all tests 2023-08-12 09:51:13 +02:00
6406d2f5b5 started to implement sub-commands 2023-08-11 18:27:33 +02:00
Oleksandr Kozachuk
820d938060 Fix tests for Python 3.10. 2023-08-05 14:42:38 +02:00
Oleksandr Kozachuk
8bb2a002a6 Fixed tests. 2023-08-05 13:21:17 +02:00
Oleksandr Kozachuk
6ae0e7d084 Improve handling of printing source code only output. 2023-05-07 16:32:24 +02:00
Oleksandr Kozachuk
c5fd466dda Change storage to use text format per default, instead of yaml, but still support yaml. 2023-05-07 14:31:17 +02:00
Oleksandr Kozachuk
eed180e7a6 Add possibility to print just the source code 2023-04-07 23:42:26 +02:00
Oleksandr Kozachuk
16f059920b Name files with autogenerated numbers 2023-04-07 21:55:47 +02:00
Oleksandr Kozachuk
4ee777118d Refactor process_tags 2023-04-07 17:56:02 +02:00
Oleksandr Kozachuk
b23a9f663f Splain main.py to several files. 2023-04-07 17:40:24 +02:00
Oleksandr Kozachuk
a9dbf87a76 Initial commit of the code. 2023-04-07 15:14:34 +02:00