Skip to content

Commit 1b7f6ee

Browse files
committed
fix language selection
1 parent e64442b commit 1b7f6ee

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

fastapi_ccli/CN/cloner_zh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def cloner(
138138
if 'True' in generic_crud:
139139
casbin = is_casbin()
140140
typer.echo('项目名称:' + project_name)
141-
print('选择 ORM:' + orm)
141+
typer.echo('选择 ORM:' + orm)
142142
typer.echo('使用 dns:' + dns)
143143
typer.echo('使用异步:' + async_app)
144144
typer.echo('使用泛型 crud:' + generic_crud)
@@ -162,7 +162,7 @@ def cloner(
162162
else:
163163
dns = is_dns()
164164
typer.echo('项目名称:' + project_name)
165-
print('选择 ORM:' + orm)
165+
typer.echo('选择 ORM:' + orm)
166166
typer.echo('使用 dns:' + dns)
167167
if 'True' in dns:
168168
src = github_ft_src

fastapi_ccli/EN/cloner_en.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def cloner(
140140
if 'True' in generic_crud:
141141
casbin = is_casbin()
142142
typer.echo('Project name: ' + typer.style(project_name, fg='blue', bold=True))
143-
print('Select orm: ' + orm)
143+
typer.echo('Select orm: ' + orm)
144144
typer.echo('Use dns: ' + dns)
145145
typer.echo('Use async: ' + async_app)
146146
typer.echo('Use generics crud: ' + generic_crud)
@@ -164,7 +164,7 @@ def cloner(
164164
else:
165165
dns = is_dns()
166166
typer.echo('Project name: ' + typer.style(project_name, fg='blue', bold=True))
167-
print('Select orm: ' + orm)
167+
typer.echo('Select orm: ' + orm)
168168
typer.echo('Use dns: ' + dns)
169169
if 'True' in dns:
170170
src = github_ft_src

fastapi_ccli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main():
1818
select_language = questionary.form(
1919
language = questionary.select('Please select your language:', choices=['zh-hans', 'en'], default='en')
2020
).unsafe_ask()
21-
if select_language['language']:
21+
if select_language['language'] == 'zh-hans':
2222
interactive_zh = typer.confirm('是否以交互模式运行?', default=True)
2323
if interactive_zh:
2424
app_zh_form()

0 commit comments

Comments
 (0)