mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
feat: add tool_warning_color argument and update color modes
This commit is contained in:
parent
b088627fcc
commit
84b5433ace
2 changed files with 14 additions and 1 deletions
|
@ -290,6 +290,12 @@ def get_parser(default_config_files, git_root):
|
|||
help="Use colors suitable for a light terminal background (default: False)",
|
||||
default=False,
|
||||
)
|
||||
group.add_argument(
|
||||
"--light-mode",
|
||||
action="store_true",
|
||||
help="Use colors suitable for a light terminal background (default: False)",
|
||||
default=False,
|
||||
)
|
||||
group.add_argument(
|
||||
"--pretty",
|
||||
action=argparse.BooleanOptionalAction,
|
||||
|
@ -315,7 +321,12 @@ def get_parser(default_config_files, git_root):
|
|||
group.add_argument(
|
||||
"--tool-error-color",
|
||||
default="#FF2222",
|
||||
help="Set the color for tool error messages (default: red)",
|
||||
help="Set the color for tool error messages (default: #FF2222)",
|
||||
)
|
||||
group.add_argument(
|
||||
"--tool-warning-color",
|
||||
default="#FFA500",
|
||||
help="Set the color for tool warning messages (default: #FFA500)",
|
||||
)
|
||||
group.add_argument(
|
||||
"--assistant-output-color",
|
||||
|
|
|
@ -368,12 +368,14 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
if args.dark_mode:
|
||||
args.user_input_color = "#32FF32"
|
||||
args.tool_error_color = "#FF3333"
|
||||
args.tool_warning_color = "#FFFF00"
|
||||
args.assistant_output_color = "#00FFFF"
|
||||
args.code_theme = "monokai"
|
||||
|
||||
if args.light_mode:
|
||||
args.user_input_color = "green"
|
||||
args.tool_error_color = "red"
|
||||
args.tool_warning_color = "#FFA500"
|
||||
args.assistant_output_color = "blue"
|
||||
args.code_theme = "default"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue