break stuff by adding new param

This commit is contained in:
Pablo Martin 2024-06-12 17:36:33 +02:00
parent 013f2cdadb
commit 78e3d71b05
4 changed files with 34 additions and 3 deletions

View file

@ -8,7 +8,7 @@ import click
import pyfiglet
from dotenv import load_dotenv
from xexe.constants import PATHS
from xexe.constants import PATHS, RATES_SOURCES
from xexe.inputs_handling import handle_get_rates_inputs
from xexe.processes import run_get_rates, run_xe_healthcheck
@ -66,6 +66,7 @@ def xe_healthcheck():
"--currencies", default=",".join([]), show_default=True, type=click.STRING
)
@click.option("--dry-run", is_flag=True)
@click.option("--rates-source", type=click.Choice(RATES_SOURCES.keys()), default="mock")
@click.option("--ignore-warnings", is_flag=True)
@click.option("--output", type=click.STRING, required=True)
def get_rates(
@ -73,6 +74,7 @@ def get_rates(
end_date: Union[str, datetime.datetime, datetime.date],
currencies: Union[None, str],
dry_run: bool,
rates_sources: str,
ignore_warnings: bool,
output: pathlib.Path,
):
@ -81,6 +83,7 @@ def get_rates(
end_date=end_date,
currencies=currencies,
dry_run=dry_run,
rates_sources=rates_sources,
ignore_warnings=ignore_warnings,
output=output,
)