mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
refactor: simplify repository selection prompt
This commit is contained in:
parent
65cce58b0a
commit
2da8b57104
1 changed files with 1 additions and 5 deletions
|
@ -37,13 +37,9 @@ def setup_git_home(io):
|
|||
while True:
|
||||
choice = io.prompt_ask(
|
||||
"Enter the number or name of the repository you want to work on,\n"
|
||||
"or enter the name of a new project to create,\n"
|
||||
"or press ENTER for a new project:"
|
||||
"or enter the name of a new project to create:"
|
||||
)
|
||||
|
||||
if not choice.strip():
|
||||
break
|
||||
|
||||
try:
|
||||
choice_num = int(choice)
|
||||
if 1 <= choice_num <= len(git_repos):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue