mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-11 17:20:46 +01:00
* introduced CommandConfig object * added dry_run for start command * added test to start_dry_run * added dry_run recap * fixed import * improved printing * fixed zulip debug info * improved recap dry-run print * moved coordinator classes into dedicated package * removed unused init * divided event coordinators from recap coordinators * added some docstrings
20 lines
547 B
Python
20 lines
547 B
Python
import logging.config
|
|
|
|
from mobilizon_reshare.config.command import CommandConfig
|
|
from mobilizon_reshare.main.publish import select_and_publish
|
|
from mobilizon_reshare.main.pull import pull
|
|
from mobilizon_reshare.publishers.coordinators.event_publishing.publish import (
|
|
PublisherCoordinatorReport,
|
|
)
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
async def start(command_config: CommandConfig) -> PublisherCoordinatorReport:
|
|
"""
|
|
STUB
|
|
:return:
|
|
"""
|
|
events = await pull()
|
|
return await select_and_publish(command_config, events,)
|