Skip to content

Commit

Permalink
PA-757: WIP on create website CLI. by Sam, Nina
Browse files Browse the repository at this point in the history
  • Loading branch information
ninakahr committed Sep 24, 2024
1 parent 7572270 commit 82cd7fb
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cli/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ def create(
],
):
"""Create an ASGI website"""
Website().create(domain_name=domain_name, command=command)
# TODO: do some basic checks
typer.echo(
snakesay(
f"All done! Your site is now live at {domain_name}. "
response = Website().create(domain_name=domain_name, command=command)

typer.echo(response)

if response.status == 201:
typer.echo(
snakesay(
f"All done! Your site is now live at {domain_name}. "
)
)
)


@app.command()
Expand Down

0 comments on commit 82cd7fb

Please sign in to comment.