Simone Robutti 9d71ef36b9
add dry run (#169)
* 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
2022-07-12 07:39:56 +02:00

14 lines
434 B
Python

from typing import Iterator
import mobilizon_reshare.config.notifiers
import mobilizon_reshare.config.publishers
from mobilizon_reshare.config.config import get_settings
def get_active_publishers() -> Iterator[str]:
return mobilizon_reshare.config.publishers.get_active_publishers(get_settings())
def get_active_notifiers() -> Iterator[str]:
return mobilizon_reshare.config.notifiers.get_active_notifiers(get_settings())