Use blank template as default (#2109)

This commit is contained in:
Nikhil Rao 2023-11-01 15:59:34 -07:00 committed by GitHub
parent 050dd3da92
commit 6e71393ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 2 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 807 B

After

Width:  |  Height:  |  Size: 807 B

View File

@ -116,7 +116,7 @@ def init(
None, metavar="APP_NAME", help="The name of the app to initialize."
),
template: constants.Templates.Kind = typer.Option(
constants.Templates.Kind.BASE.value,
constants.Templates.Kind.BLANK.value,
help="The template to initialize the app with.",
),
loglevel: constants.LogLevel = typer.Option(

View File

@ -266,7 +266,7 @@ def initialize_app_directory(app_name: str, template: constants.Templates.Kind):
# Rename the template app to the app name.
path_ops.mv(constants.Templates.Dirs.CODE, app_name)
path_ops.mv(
os.path.join(app_name, template.value + constants.Ext.PY),
os.path.join(app_name, template_dir.name + constants.Ext.PY),
os.path.join(app_name, app_name + constants.Ext.PY),
)