diff options
| author | 2024-03-14 12:22:13 +0800 | |
|---|---|---|
| committer | 2024-03-14 12:22:13 +0800 | |
| commit | 28451877625d2f34f02f4a2716de26a557e8c8fe (patch) | |
| tree | fbda0b7d2d1af8957034c2b5e77e16b842082783 | |
| parent | c3d854b051ccb17907726ee16cd882bd4650b724 (diff) | |
| download | ipm-28451877625d2f34f02f4a2716de26a557e8c8fe.tar.gz ipm-28451877625d2f34f02f4a2716de26a557e8c8fe.zip | |
test(api): fix api input in tests
| -rw-r--r-- | src/ipm/api.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ipm/api.py b/src/ipm/api.py index 007a0d2..3d839c2 100644 --- a/src/ipm/api.py +++ b/src/ipm/api.py @@ -127,9 +127,9 @@ def init(target_path: StrPath, force: bool = False, echo: bool = False) -> bool: echo=echo, ) - standalone = confirm("是否为项目分发", default=True) - init_git = confirm("初始化 Git 仓库", default=True) - init_virtualenv = confirm(f"为 [bold green]{name}[/] 虚拟环境", default=True) + standalone = confirm("对项目进行分发?", default=True) if echo else True + init_git = confirm("初始化 Git 仓库?", default=True) if echo else True + init_virtualenv = confirm(f"创建虚拟环境?", default=True) if echo else True update("构建环境中...", echo) |
