Skip to content

Commit a236b3c

Browse files
author
Nina Kahr
committed
PA-757: WIP on create website CLI. by Sam, Nina
1 parent 7572270 commit a236b3c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cli/website.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from typing_extensions import Annotated
44

5+
import json
56
import typer
67
from snakesay import snakesay
78
from tabulate import tabulate
@@ -32,8 +33,11 @@ def create(
3233
],
3334
):
3435
"""Create an ASGI website"""
35-
Website().create(domain_name=domain_name, command=command)
36-
# TODO: do some basic checks
36+
response = Website().create(domain_name=domain_name, command=command)
37+
38+
typer.echo("Response:")
39+
typer.echo(json.dumps(response))
40+
3741
typer.echo(
3842
snakesay(
3943
f"All done! Your site is now live at {domain_name}. "

0 commit comments

Comments
 (0)