Simone Robutti bc61ad6123
cli help messages (#85)
* added basic recap feature (no error handling)

* introduced abstractpublication

* extracted base reports

* added error report to recap

* added test

* added docs

* implemented publisher and formatter

* fixed API for recap

* removed redundant config validation

* added config sample

* added mobilizon link to templates

* added link format to telegram

* added mobilizon link to recap

* fixed config and emoji

* refactored commands

* added help messages

* improved format
2021-10-25 13:43:38 +02:00

12 lines
211 B
Python

import logging.config
from mobilizon_reshare.main.recap import recap
logger = logging.getLogger(__name__)
async def main():
reports = await recap()
return 0 if reports and reports.successful else 1