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 a236b3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from typing_extensions import Annotated

import json
import typer
from snakesay import snakesay
from tabulate import tabulate
Expand Down Expand Up @@ -32,8 +33,11 @@ def create(
],
):
"""Create an ASGI website"""
Website().create(domain_name=domain_name, command=command)
# TODO: do some basic checks
response = Website().create(domain_name=domain_name, command=command)

typer.echo("Response:")
typer.echo(json.dumps(response))

typer.echo(
snakesay(
f"All done! Your site is now live at {domain_name}. "
Expand Down

0 comments on commit a236b3c

Please sign in to comment.