Skip to content

Commit

Permalink
deps: ⬆️ Add typer for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
janezlapajne committed Aug 12, 2024
1 parent 451f4e3 commit 7edcb31
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
11 changes: 10 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import typer

from source.core import logger, settings

logger.debug(settings)

def main(name: str, lastname: str):
logger.debug(settings)
print(f"Hello {name} {lastname}")


if __name__ == "__main__":
typer.run(main)
30 changes: 29 additions & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies = [
"siapy>=0.4.0",
"loguru>=0.7.2",
"pydantic-settings>=2.4.0",
"typer>=0.12.3",
]
requires-python = "==3.10.*"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion source/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_file=DOTENV_PATH,
env_file_encoding="utf-8",
cli_parse_args=True,
cli_parse_args=False,
)


Expand Down

0 comments on commit 7edcb31

Please sign in to comment.