mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
Refactor InputOutput class to accept history_file as an argument and remove it from get_input method.
This commit is contained in:
parent
b074cae5c7
commit
4ff5b0e115
3 changed files with 11 additions and 9 deletions
|
@ -3,7 +3,7 @@ import sys
|
|||
import argparse
|
||||
from dotenv import load_dotenv
|
||||
from aider.coder import Coder
|
||||
|
||||
from aider.getinput import InputOutput
|
||||
|
||||
def main(args=None):
|
||||
if args is None:
|
||||
|
@ -75,8 +75,10 @@ def main(args=None):
|
|||
fnames = args.files
|
||||
pretty = args.pretty
|
||||
|
||||
io = InputOutput(args.pretty, args.yes, args.history_file)
|
||||
|
||||
coder = Coder(
|
||||
args.model, fnames, pretty, args.history_file, args.show_diffs, args.auto_commits, args.yes
|
||||
args.model, fnames, pretty, args.show_diffs, args.auto_commits, io,
|
||||
)
|
||||
coder.commit(ask=True, prefix="wip: ", which="repo_files")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue