mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
feat: make abs_read_only_fnames optional in get_input
This commit is contained in:
parent
f542c65b58
commit
26698488d3
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ class InputOutput:
|
||||||
with open(str(filename), "w", encoding=self.encoding) as f:
|
with open(str(filename), "w", encoding=self.encoding) as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
|
|
||||||
def get_input(self, root, rel_fnames, addable_rel_fnames, commands, abs_read_only_fnames):
|
def get_input(self, root, rel_fnames, addable_rel_fnames, commands, abs_read_only_fnames=None):
|
||||||
if self.pretty:
|
if self.pretty:
|
||||||
style = dict(style=self.user_input_color) if self.user_input_color else dict()
|
style = dict(style=self.user_input_color) if self.user_input_color else dict()
|
||||||
self.console.rule(**style)
|
self.console.rule(**style)
|
||||||
|
@ -251,7 +251,7 @@ class InputOutput:
|
||||||
style = None
|
style = None
|
||||||
|
|
||||||
completer_instance = AutoCompleter(
|
completer_instance = AutoCompleter(
|
||||||
root, rel_fnames, addable_rel_fnames, commands, self.encoding, abs_read_only_fnames
|
root, rel_fnames, addable_rel_fnames, commands, self.encoding, abs_read_only_fnames=abs_read_only_fnames
|
||||||
)
|
)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue