(msg: str)
| 253 | return path |
| 254 | |
| 255 | def _ask_dir(msg: str) -> str: |
| 256 | path = questionary.path(msg, only_directories=True).ask() |
| 257 | if path is None: |
| 258 | raise KeyboardInterrupt |
| 259 | return path.strip() or "." |
| 260 | |
| 261 | def _ask_password(required: bool = False) -> str: |
| 262 | hint = "密码(必填)" if required else "密码(留空则不加密)" |