mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
wip: Changed history_file to input_history_file in InputOutput constructor.
This commit is contained in:
parent
841dfd0a4a
commit
200ecf5a1f
2 changed files with 4 additions and 4 deletions
|
@ -52,10 +52,10 @@ class FileContentCompleter(Completer):
|
||||||
|
|
||||||
|
|
||||||
class InputOutput:
|
class InputOutput:
|
||||||
def __init__(self, pretty, yes, history_file):
|
def __init__(self, pretty, yes, input_history_file):
|
||||||
self.pretty = pretty
|
self.pretty = pretty
|
||||||
self.yes = yes
|
self.yes = yes
|
||||||
self.history_file = history_file
|
self.input_history_file = input_history_file
|
||||||
|
|
||||||
if pretty:
|
if pretty:
|
||||||
self.console = Console()
|
self.console = Console()
|
||||||
|
@ -113,7 +113,7 @@ class InputOutput:
|
||||||
line = prompt(
|
line = prompt(
|
||||||
show,
|
show,
|
||||||
completer=completer_instance,
|
completer=completer_instance,
|
||||||
history=FileHistory(self.history_file),
|
history=FileHistory(self.input_history_file),
|
||||||
style=style,
|
style=style,
|
||||||
reserve_space_for_menu=4,
|
reserve_space_for_menu=4,
|
||||||
complete_style=CompleteStyle.MULTI_COLUMN,
|
complete_style=CompleteStyle.MULTI_COLUMN,
|
||||||
|
|
|
@ -75,7 +75,7 @@ def main(args=None):
|
||||||
fnames = args.files
|
fnames = args.files
|
||||||
pretty = args.pretty
|
pretty = args.pretty
|
||||||
|
|
||||||
io = InputOutput(args.pretty, args.yes, args.history_file)
|
io = InputOutput(args.pretty, args.yes, args.input_history_file)
|
||||||
|
|
||||||
coder = Coder(
|
coder = Coder(
|
||||||
args.model, fnames, pretty, args.show_diffs, args.auto_commits, io,
|
args.model, fnames, pretty, args.show_diffs, args.auto_commits, io,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue