1
0
mirror of https://github.com/hughrun/ephemetoot synced 2025-03-08 23:47:38 +01:00

12 Commits

Author SHA1 Message Date
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