feat: Rename --yes to --yes-always and update config file syntax

This commit is contained in:
Paul Gauthier 2024-10-02 10:55:59 -07:00 committed by Paul Gauthier (aider)
parent d4fe0b18ad
commit 99c3a1ec7f
8 changed files with 62 additions and 18 deletions

View file

@ -1,6 +1,13 @@
# Release history # Release history
### main branch
- Renamed `--yes` to `--yes-always`.
- Now uses `AIDER_YES_ALWAYS` env var and `yes-always:` yaml key.
- Can still abbreviate to `--yes` on the command line.
- Config file now uses standard YAML list syntax with ` - list entries`, one per line.
### Aider v0.58.1 ### Aider v0.58.1
- Fixed bug where cache warming pings caused subsequent user messages to trigger a tight loop of LLM requests. - Fixed bug where cache warming pings caused subsequent user messages to trigger a tight loop of LLM requests.

View file

@ -147,7 +147,10 @@ class YamlHelpFormatter(argparse.HelpFormatter):
elif action.nargs in ("*", "+") or isinstance(action, argparse._AppendAction): elif action.nargs in ("*", "+") or isinstance(action, argparse._AppendAction):
parts.append(f"#{switch}: xxx") parts.append(f"#{switch}: xxx")
parts.append("## Specify multiple values like this:") parts.append("## Specify multiple values like this:")
parts.append(f"#{switch}: [xxx,yyyy,zzz]\n") parts.append(f"#{switch}:")
parts.append(f"# - xxx")
parts.append(f"# - yyy")
parts.append(f"# - zzz")
else: else:
parts.append(f"#{switch}: xxx\n") parts.append(f"#{switch}: xxx\n")

View file

@ -16,6 +16,13 @@ cog.out(text)
# Release history # Release history
### main branch
- Renamed `--yes` to `--yes-always`.
- Now uses `AIDER_YES_ALWAYS` env var and `yes-always:` yaml key.
- Can still abbreviate to `--yes` on the command line.
- Config file now uses standard YAML list syntax with ` - list entries`, one per line.
### Aider v0.58.1 ### Aider v0.58.1
- Fixed bug where cache warming pings caused subsequent user messages to trigger a tight loop of LLM requests. - Fixed bug where cache warming pings caused subsequent user messages to trigger a tight loop of LLM requests.

View file

@ -248,7 +248,10 @@
## Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times) ## Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times)
#lint-cmd: xxx #lint-cmd: xxx
## Specify multiple values like this: ## Specify multiple values like this:
#lint-cmd: [xxx,yyyy,zzz] #lint-cmd:
# - xxx
# - yyy
# - zzz
## Enable/disable automatic linting after changes (default: True) ## Enable/disable automatic linting after changes (default: True)
#auto-lint: true #auto-lint: true
@ -268,12 +271,18 @@
## specify a file to edit (can be used multiple times) ## specify a file to edit (can be used multiple times)
#file: xxx #file: xxx
## Specify multiple values like this: ## Specify multiple values like this:
#file: [xxx,yyyy,zzz] #file:
# - xxx
# - yyy
# - zzz
## specify a read-only file (can be used multiple times) ## specify a read-only file (can be used multiple times)
#read: xxx #read: xxx
## Specify multiple values like this: ## Specify multiple values like this:
#read: [xxx,yyyy,zzz] #read:
# - xxx
# - yyy
# - zzz
## Use VI editing mode in the terminal (default: False) ## Use VI editing mode in the terminal (default: False)
#vim: false #vim: false
@ -300,7 +309,7 @@
#apply: xxx #apply: xxx
## Always say yes to every confirmation ## Always say yes to every confirmation
#yes: false #yes-always: false
## Enable verbose output ## Enable verbose output
#verbose: false #verbose: false

View file

@ -295,7 +295,7 @@
#AIDER_APPLY= #AIDER_APPLY=
## Always say yes to every confirmation ## Always say yes to every confirmation
#AIDER_YES= #AIDER_YES_ALWAYS=
## Enable verbose output ## Enable verbose output
#AIDER_VERBOSE=false #AIDER_VERBOSE=false

View file

@ -23,8 +23,16 @@ load whichever is found first.
## A note on lists ## A note on lists
The syntax for specifying a list of values is not standard yaml. Lists of values can be specified either as a bulleted list:
Instead, use this format:
```
read:
- CONVENTIONS.md
- anotherfile.txt
- thirdfile.py
```
Or lists can be specified using commas and square brackets:
``` ```
read: [CONVENTIONS.md, anotherfile.txt, thirdfile.py] read: [CONVENTIONS.md, anotherfile.txt, thirdfile.py]
@ -296,7 +304,10 @@ cog.outl("```")
## Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times) ## Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times)
#lint-cmd: xxx #lint-cmd: xxx
## Specify multiple values like this: ## Specify multiple values like this:
#lint-cmd: [xxx,yyyy,zzz] #lint-cmd:
# - xxx
# - yyy
# - zzz
## Enable/disable automatic linting after changes (default: True) ## Enable/disable automatic linting after changes (default: True)
#auto-lint: true #auto-lint: true
@ -316,12 +327,18 @@ cog.outl("```")
## specify a file to edit (can be used multiple times) ## specify a file to edit (can be used multiple times)
#file: xxx #file: xxx
## Specify multiple values like this: ## Specify multiple values like this:
#file: [xxx,yyyy,zzz] #file:
# - xxx
# - yyy
# - zzz
## specify a read-only file (can be used multiple times) ## specify a read-only file (can be used multiple times)
#read: xxx #read: xxx
## Specify multiple values like this: ## Specify multiple values like this:
#read: [xxx,yyyy,zzz] #read:
# - xxx
# - yyy
# - zzz
## Use VI editing mode in the terminal (default: False) ## Use VI editing mode in the terminal (default: False)
#vim: false #vim: false
@ -348,7 +365,7 @@ cog.outl("```")
#apply: xxx #apply: xxx
## Always say yes to every confirmation ## Always say yes to every confirmation
#yes: false #yes-always: false
## Enable verbose output ## Enable verbose output
#verbose: false #verbose: false

View file

@ -337,7 +337,7 @@ cog.outl("```")
#AIDER_APPLY= #AIDER_APPLY=
## Always say yes to every confirmation ## Always say yes to every confirmation
#AIDER_YES= #AIDER_YES_ALWAYS=
## Enable verbose output ## Enable verbose output
#AIDER_VERBOSE=false #AIDER_VERBOSE=false

View file

@ -65,9 +65,10 @@ usage: aider [-h] [--openai-api-key] [--anthropic-api-key] [--model]
[--read] [--vim] [--chat-language] [--version] [--read] [--vim] [--chat-language] [--version]
[--just-check-update] [--just-check-update]
[--check-update | --no-check-update] [--check-update | --no-check-update]
[--install-main-branch] [--upgrade] [--apply] [--yes] [--install-main-branch] [--upgrade] [--apply]
[-v] [--show-repo-map] [--show-prompts] [--exit] [--yes-always] [-v] [--show-repo-map] [--show-prompts]
[--message] [--message-file] [--encoding] [-c] [--gui] [--exit] [--message] [--message-file] [--encoding] [-c]
[--gui]
[--suggest-shell-commands | --no-suggest-shell-commands] [--suggest-shell-commands | --no-suggest-shell-commands]
[--voice-format] [--voice-language] [--voice-format] [--voice-language]
@ -551,9 +552,9 @@ Aliases:
Apply the changes from the given file instead of running the chat (debug) Apply the changes from the given file instead of running the chat (debug)
Environment variable: `AIDER_APPLY` Environment variable: `AIDER_APPLY`
### `--yes` ### `--yes-always`
Always say yes to every confirmation Always say yes to every confirmation
Environment variable: `AIDER_YES` Environment variable: `AIDER_YES_ALWAYS`
### `--verbose` ### `--verbose`
Enable verbose output Enable verbose output