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).
- 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
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.
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.
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.
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
This commit adds a --retry-mins option to enable users to choose how many minutes pass
between attempts to retry a toot deletion when there is an error.
Also re-organises documentation and bumps version to 2.6.