feat: integrated with poetry scripts
This commit is contained in:
parent
3f4c41a883
commit
6adc0abfca
3 changed files with 9 additions and 6 deletions
|
@ -1,9 +1,5 @@
|
||||||
from compose_viz import cli, __app_name__
|
from compose_viz.cli import start_cli
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
|
||||||
cli.app(prog_name=__app_name__)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
start_cli()
|
||||||
|
|
|
@ -55,3 +55,7 @@ def compose_viz(
|
||||||
typer.echo(f"Successfully parsed {input_path}")
|
typer.echo(f"Successfully parsed {input_path}")
|
||||||
|
|
||||||
raise typer.Exit()
|
raise typer.Exit()
|
||||||
|
|
||||||
|
|
||||||
|
def start_cli() -> None:
|
||||||
|
app(prog_name=__app_name__)
|
||||||
|
|
|
@ -15,3 +15,6 @@ pytest = "^7.1.2"
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
|
[tool.poetry.scripts]
|
||||||
|
compose_viz = "compose_viz.cli:start_cli"
|
||||||
|
|
Loading…
Reference in a new issue