Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jerowe committed Jan 25, 2023
1 parent 981c1de commit 26fd556
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions jupyter_rstudio_singularity/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
HOME = os.environ.get("HOME")
USER = os.environ.get("USER")

app = typer.Typer()
cli = typer.Typer()


def find_free_port():
Expand Down Expand Up @@ -216,7 +216,6 @@ def sanity_check_singularity_image(
return True


@app.command()
def main(
remote_image: str = typer.Option(
"docker://dabbleofdevops/r-tidyverse:4.2.2",
Expand Down Expand Up @@ -269,5 +268,9 @@ def main(
return 0


def app():
typer.run(cli())


if __name__ == "__main__":
sys.exit(main()) # pragma: no cover
sys.exit(app) # pragma: no cover
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
description="Launch RStudio with Singularity from the command line.",
entry_points={
"console_scripts": [
"launch-rstudio=jupyter_rstudio_singularity.cli:main",
"launch-rstudio=jupyter_rstudio_singularity.cli:app",
],
},
install_requires=requirements,
Expand Down

0 comments on commit 26fd556

Please sign in to comment.