mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
handle piped input for canned asciinema demos
This commit is contained in:
parent
9b734cb149
commit
4c97799b42
2 changed files with 31 additions and 23 deletions
|
@ -164,6 +164,8 @@ class Coder:
|
|||
if self.num_control_c >= 2:
|
||||
break
|
||||
self.console.print("[bold red]^C again to quit")
|
||||
except EOFError:
|
||||
return
|
||||
|
||||
def run_loop(self):
|
||||
if self.pretty:
|
||||
|
@ -336,6 +338,8 @@ class Coder:
|
|||
for match in self.pattern.finditer(content):
|
||||
_, path, _, _, original, updated = match.groups()
|
||||
|
||||
path = path.strip()
|
||||
|
||||
if path not in self.fnames:
|
||||
if not Path(path).exists():
|
||||
question = f"[red bold]Allow creation of new file {path}?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue