Use blank template as default (#2109)
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 807 B After Width: | Height: | Size: 807 B |
@ -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(
|
||||
|
@ -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),
|
||||
)
|
||||
|
||||
|