2020-02-22 14:53:52 +01:00
|
|
|
import click
|
|
|
|
|
2020-02-22 15:34:40 +01:00
|
|
|
from ofx_processor.utils import ynab
|
2020-02-23 09:10:10 +01:00
|
|
|
from ofx_processor.utils.utils import discover_processors
|
2020-02-22 14:53:52 +01:00
|
|
|
|
|
|
|
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
|
|
|
|
|
|
|
|
|
|
|
@click.group(context_settings=CONTEXT_SETTINGS)
|
|
|
|
@click.version_option()
|
|
|
|
def cli():
|
2020-02-29 11:12:22 +01:00
|
|
|
pass # This function acts only as a group to collect other subcommands
|
|
|
|
# As such, it intentionally has no body
|
2020-02-22 14:53:52 +01:00
|
|
|
|
|
|
|
|
2020-02-22 15:34:40 +01:00
|
|
|
cli.add_command(ynab.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__":
|
|
|
|
cli()
|