-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release version 0.1.3
- Loading branch information
Showing
8 changed files
with
359 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
import typer | ||
from .utils import start_app, start_project | ||
from .utils import start_app, start_project, select_database | ||
|
||
app = typer.Typer(add_completion=False, help="Managing FastAPI projects made easy!") | ||
|
||
app = typer.Typer( | ||
add_completion=False, | ||
help="Managing FastAPI projects made easy!", | ||
name="Manage FastAPI", | ||
) | ||
|
||
|
||
@app.command(help="Creates a project with the given name.") | ||
def startproject(projectname: str = typer.Argument(...)): | ||
start_project(projectname) | ||
database_option = select_database() | ||
start_project(projectname, database_option=database_option) | ||
|
||
|
||
@app.command(help="Creates a app with the given name.") | ||
def startapp(appname: str = typer.Argument(...)): | ||
start_app(appname) | ||
|
||
|
||
# TODO | ||
# @app.command(help="Runs server") | ||
# def runserver(server: str = typer.Argument("uvicorn")): | ||
# run_server() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
def test_version(): | ||
assert __version__ == "0.1.2" | ||
assert __version__ == "0.1.3" |
Oops, something went wrong.