Commit Graph

17 Commits

Author SHA1 Message Date
Hugh Rundle 0ce796c87e add --retry-mins option
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.
2020-08-23 16:53:03 +10:00
Hugh Rundle 62db64a73f add --quiet mode
This new option suppresses most logging, except for very basic information (which account is being worked on, and how many toots were deleted).

Exception messages are not suppressed.
2020-07-18 18:02:30 +10:00
Hugh Rundle f5016fe684 add --archive-deleted flag
This adds a flag to restrict the archive to only toots about to be deleted, rather than archiving everything.
2020-07-18 17:38:16 +10:00
Hugh Rundle 9803e16f95 Fix non-absolute archive filepaths breaking
Archive paths can now be relative (not recommended) or use tildes

Also improves documentation of archive function both in README and example config.
2020-07-18 15:45:20 +10:00
Hugh Rundle ad7eb48870 apply black code formatting 2020-07-04 10:56:23 +10:00
Jan-Piet Mens e92a6e9d16 add missing newline between functions 2020-06-29 13:45:44 +02:00
Jan-Piet Mens 7ebf1220a3 remove debugging. 2020-06-29 13:45:08 +02:00
Jan-Piet Mens c0d680258f Add support for archiving toots into JSON files 2020-06-28 14:04:29 +02:00
Hugh Rundle a1db933bbd Add --version flag
Commit adds a --version flag to display the current version (from setup.py) and also fetch the latest version (from the git repo).
Additionally includes the version number in the header when running deletions.
Resolves #27
2020-06-21 15:25:04 +10:00
Hugh Rundle 3ee8336888 add --pace argument
Resolves #24
Resolves #25

This commit adds a --pace argument, utilising the Mastodon.py option to slow down API calls to stay within the limit rather than pausing when it is hit.

Also adds timestamp in normal operation when the API limit is hit, and lists how many minutes left before reset.
2020-06-21 12:42:25 +10:00
Hugh Rundle 2263a9fc54 resolve #26 add hide_skipped flag 2020-06-20 21:05:06 +10:00
Hugh Rundle 669d276f81 resolve #23 include datestamp option for all actions 2020-06-20 20:52:34 +10:00
Hugh Rundle 898ce41fb7 Simplify config options and improve error handling
Fix #21
2020-05-09 14:45:38 +10:00
Hugh Rundle e5488ced4d fix catastrophic bug from abc7e07677 2020-04-27 15:28:07 +10:00
Hugh Rundle abc7e07677 add launchd scheduling
adds --schedule and --time flags
improves CLI feedback
resolves #5
2020-04-25 08:53:19 +10:00
Hugh Rundle 3f6562b423 improve exception handling 2020-04-21 08:49:34 +10:00
Hugh Rundle 61d0d01f12 use setuptools and add multi-user
Resolves #20 - now uses setuptools for easy installation with pip
Resolves #13 - can now manage multiple accounts
Config file is now in YAML and is passed to script with --config flag
Can now execute from anywhere
2020-04-20 20:14:58 +10:00