mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
Added yes defaults
This commit is contained in:
parent
8654a4201f
commit
875d9f8c9b
1 changed files with 4 additions and 3 deletions
|
@ -94,7 +94,7 @@ class Coder:
|
||||||
self.console.print(f"[red bold]Files not tracked in {repo.git_dir}:")
|
self.console.print(f"[red bold]Files not tracked in {repo.git_dir}:")
|
||||||
for fn in new_files:
|
for fn in new_files:
|
||||||
self.console.print(f"[red bold] {fn}")
|
self.console.print(f"[red bold] {fn}")
|
||||||
if Confirm.ask("[bold red]Add them?", console=self.console):
|
if Confirm.ask("[bold red]Add them?", console=self.console, default='y'):
|
||||||
for relative_fname in new_files:
|
for relative_fname in new_files:
|
||||||
repo.git.add(relative_fname)
|
repo.git.add(relative_fname)
|
||||||
self.console.print(
|
self.console.print(
|
||||||
|
@ -331,7 +331,7 @@ class Coder:
|
||||||
question = f"[red bold]Allow creation of new file {path}?"
|
question = f"[red bold]Allow creation of new file {path}?"
|
||||||
else:
|
else:
|
||||||
question = f"[red bold]Allow edits to {path} which was not previously provided?"
|
question = f"[red bold]Allow edits to {path} which was not previously provided?"
|
||||||
if not Confirm.ask(question, console=self.console):
|
if not Confirm.ask(question, console=self.console, default='y'):
|
||||||
self.console.print(f"[red]Skipping edit to {path}")
|
self.console.print(f"[red]Skipping edit to {path}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -414,8 +414,9 @@ class Coder:
|
||||||
self.console.print(f"[red]Suggested commit message:\n{commit_message}\n")
|
self.console.print(f"[red]Suggested commit message:\n{commit_message}\n")
|
||||||
|
|
||||||
res = Prompt.ask(
|
res = Prompt.ask(
|
||||||
"[red]Commit before the chat proceeds? \[Y/n/commit message]", # noqa: W605
|
"[red]Commit before the chat proceeds? \[y/n/commit message]", # noqa: W605
|
||||||
console=self.console,
|
console=self.console,
|
||||||
|
default='y',
|
||||||
).strip()
|
).strip()
|
||||||
self.console.print()
|
self.console.print()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue