mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
feat: add --load argument to execute commands from file
This commit is contained in:
parent
d288122fab
commit
347a9f2a6d
2 changed files with 9 additions and 0 deletions
|
@ -661,6 +661,11 @@ def get_parser(default_config_files, git_root):
|
||||||
" (disables chat mode)"
|
" (disables chat mode)"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
group.add_argument(
|
||||||
|
"--load",
|
||||||
|
metavar="LOAD_FILE",
|
||||||
|
help="Load and execute commands from a file",
|
||||||
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--encoding",
|
"--encoding",
|
||||||
default="utf-8",
|
default="utf-8",
|
||||||
|
|
|
@ -770,6 +770,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
return 1
|
return 1
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if args.load:
|
||||||
|
commands.cmd_load(args.load)
|
||||||
|
return
|
||||||
|
|
||||||
if args.exit:
|
if args.exit:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue