2020-02-22 14:53:52 +01:00
|
|
|
import click
|
|
|
|
|
2021-11-20 15:00:43 +01:00
|
|
|
from ofx_processor import downloaders
|
|
|
|
from ofx_processor.utils import config
|
2021-11-18 19:06:40 +01:00
|
|
|
from ofx_processor.utils.utils import OrderedGroup, discover_processors
|
2020-02-22 14:53:52 +01:00
|
|
|
|
|
|
|
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
|
|
|
|
|
|
|
|
2020-02-29 18:26:32 +01:00
|
|
|
@click.group(context_settings=CONTEXT_SETTINGS, cls=OrderedGroup)
|
2020-02-22 14:53:52 +01:00
|
|
|
@click.version_option()
|
|
|
|
def cli():
|
2020-02-29 11:53:43 +01:00
|
|
|
"""
|
|
|
|
Import your data to YNAB with the processors listed below
|
|
|
|
or manage your config.
|
|
|
|
"""
|
2020-02-22 14:53:52 +01:00
|
|
|
|
|
|
|
|
2021-11-20 15:00:43 +01:00
|
|
|
cli.add_command(config.config, name="config")
|
2020-02-23 09:10:10 +01:00
|
|
|
discover_processors(cli)
|
2020-02-22 14:53:52 +01:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2020-02-29 13:15:43 +01:00
|
|
|
cli() # pragma: nocover
|