Commit Graph

21 Commits

Author SHA1 Message Date
Hugh Rundle 2ab8c55bac update instructions
- fix docs Home link being wrong
- add --verbose to options page in docs
- add info about where to see docs, in init()
2020-09-08 18:41:37 +10:00
Hugh Rundle cb78b7682a add line break in verbose mode 2020-09-07 13:28:54 +10:00
Hugh Rundle 81f408bde3 improve test run message
Resolves #50 by showing a different 'completion message' for test runs.
2020-09-07 11:13:07 +10:00
Hugh Rundle c3235027da add verbose mode and move exception catching
When tests were added and the main function was split up, some of the exception catching logic was inappropriately moved.
This meant that some exceptions didn't break the loop, when they should have. This is now fixed.

Also added --verbose mode to make troubleshooting a bit easier (hopefully).
2020-09-07 10:57:19 +10:00
Hugh Rundle 6d13618ad4 improve instructions
- README now has a 'quickstart' section
- config file creation clarifies not to include the '#' in hashtag lists
2020-09-07 09:51:06 +10:00
Hugh Rundle 6ccbd9bdd9 standardise toot object references and fix prints
- toot references consistently use dot notation
- console_print statement with old print() comma use fixed
- change the way new lines are created in final message
2020-09-05 17:14:34 +10:00
Hugh Rundle 85546870f6 move retry_on_error() to top level
- moves retry_on_error() to top level function to enable testing
- clean up some code formatting
2020-09-05 12:07:51 +10:00
Hugh Rundle 0be13d7f1a put rate limit message in function and fix console_print()
- datetime message should print before message, not after
- rate limit message moved into function print_rate_limit_message()
2020-09-05 11:09:59 +10:00
Hugh Rundle 303f7a4cc0 move most print statements to console_print() function
Makes code more DRY by moving printing logic into a function.
Checks for --quiet and --hide_skipped are now in this function.
Checks for --datestamp also in this function.

Also makes code easier to test.
2020-09-05 09:20:26 +10:00
Hugh Rundle 3012800f54 create process_toot() function
Move all logic for processing each individual toot out of check_batch to a top level function.

This is partially to enable easier testing and partially to make the codebase easier to read through and understand.
2020-08-31 16:54:26 +10:00
Hugh Rundle 43a792e44d move check_batch to top level function 2020-08-31 15:10:18 +10:00
Hugh Rundle 0a01f18e44 refactor init()
This moves the input() statements into four separate functions taking values.

The main reason for doing so was to allow for unit testing, however it also makes the init() function a little clearer.
Also, potentially, these input functions can now be used by other functions in future.
2020-08-31 14:28:08 +10:00
Hugh Rundle ffa50dd448 use os.path.join in plist creation
This is more correct and also makes testing easier
2020-08-31 09:53:09 +10:00
Hugh Rundle 50d04c27db move archiving and date printing functions into global scope 2020-08-30 18:57:25 +10:00
Hugh Rundle 8c973a0b3e improve error handling in console.py 2020-08-30 16:03:27 +10:00
Hugh Rundle f6542f0529 refactor print statements 2020-08-30 14:33:36 +10:00
Hugh Rundle 2c9e35fffc create __docs__ comments 2020-08-29 14:04:24 +10:00
Hugh Rundle e13646e459 apply black formatting 2020-08-28 21:25:46 +10:00
Hugh Rundle beac59d440 add try/except for missing config file 2020-08-28 21:16:07 +10:00
Hugh Rundle d3e3db27a8 3.0.0-alpha
This commit updates ephemetoot for version 3.0.0-alpha.0

Version 3 is designed to be installed from PyPi rather than GitHub. This means the default plist and config files will not be available.

- updates to directory structure
- add --init flag for initiating a config file
- change --schedule so that it saves the plist file directly to ~/Library/LaunchAgents
- update documentation
- new README just for PyPi
2020-08-28 18:16:39 +10:00
Hugh Rundle 490dad3bb8 reconfigure file structure and add toml for poetry 2020-08-26 21:59:01 +10:00