Skip to content

Commit

Permalink
Call run_from_configuration in CLI module
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Dec 6, 2023
1 parent d6e80c8 commit 8f4cd6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/anycastd/_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from anycastd import __version__
from anycastd._cli.output import ExitCode, print_error
from anycastd._configuration import ConfigurationError, MainConfiguration
from anycastd.core import run_from_configuration

CONFIG_PATH = Path("/etc/anycastd/config.toml")

Expand Down Expand Up @@ -51,6 +52,8 @@ def run(
] = CONFIG_PATH,
) -> None:
"""Run anycastd."""
main_configuration = _get_main_configuration(config)
run_from_configuration(main_configuration)


def _get_main_configuration(config: Path) -> MainConfiguration:
Expand Down

0 comments on commit 8f4cd6f

Please sign in to comment.