mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 20:25:01 +00:00
auto-commitS
This commit is contained in:
parent
1761325eef
commit
905a81d78e
1 changed files with 12 additions and 5 deletions
|
@ -41,7 +41,10 @@ def main(args=None, input=None, output=None):
|
||||||
"--config",
|
"--config",
|
||||||
is_config_file=True,
|
is_config_file=True,
|
||||||
metavar="CONFIG_FILE",
|
metavar="CONFIG_FILE",
|
||||||
help="Specify the config file (default: search for .aider.conf.yml in git root or home directory)",
|
help=(
|
||||||
|
"Specify the config file (default: search for .aider.conf.yml in git root or home"
|
||||||
|
" directory)"
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -50,8 +53,12 @@ def main(args=None, input=None, output=None):
|
||||||
nargs="*",
|
nargs="*",
|
||||||
help="a list of source code files (optional)",
|
help="a list of source code files (optional)",
|
||||||
)
|
)
|
||||||
default_input_history_file = os.path.join(git_root, ".aider.input.history") if git_root else ".aider.input.history"
|
default_input_history_file = (
|
||||||
default_chat_history_file = os.path.join(git_root, ".aider.chat.history.md") if git_root else ".aider.chat.history.md"
|
os.path.join(git_root, ".aider.input.history") if git_root else ".aider.input.history"
|
||||||
|
)
|
||||||
|
default_chat_history_file = (
|
||||||
|
os.path.join(git_root, ".aider.chat.history.md") if git_root else ".aider.chat.history.md"
|
||||||
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--input-history-file",
|
"--input-history-file",
|
||||||
|
@ -102,14 +109,14 @@ def main(args=None, input=None, output=None):
|
||||||
help="Apply the changes from the given file instead of running the chat (debug)",
|
help="Apply the changes from the given file instead of running the chat (debug)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--auto-commit",
|
"--auto-commits",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
default=True,
|
default=True,
|
||||||
help="Enable auto commit of changes (default: True)",
|
help="Enable auto commit of changes (default: True)",
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--no-auto-commit",
|
"--no-auto-commits",
|
||||||
action="store_false",
|
action="store_false",
|
||||||
dest="auto_commit",
|
dest="auto_commit",
|
||||||
env_var=f"{env_prefix}AUTO_COMMIT",
|
env_var=f"{env_prefix}AUTO_COMMIT",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue