mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
feat: add encoding hint for file loading in commands
This commit is contained in:
parent
6cec44e402
commit
2af48e159c
1 changed files with 1 additions and 0 deletions
|
@ -1252,6 +1252,7 @@ class Commands:
|
|||
self.io.tool_error("Please provide a filename containing commands to load.")
|
||||
return
|
||||
|
||||
#ai use io.encoding, ignore decode errs!
|
||||
try:
|
||||
with open(args.strip(), "r") as f:
|
||||
commands = f.readlines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue