You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like goose cli to blend in with the rest of my cli and only use the base 16 colors of my terminal emulator.
I believe there are a handful of dependencies goose uses which control some parts of the output, bat, cliclack, console, rustyline. Some of these currently respect a NO_COLOR environment variable being set. But that is a bit drastic and not consistent throughout the app. Ideally goose exposed a control for colors.
The text was updated successfully, but these errors were encountered:
jasonkneen
added a commit
to jasonkneen/goose
that referenced
this issue
Feb 5, 2025
Fixesblock#1089
Add color control to goose CLI to use base 16 colors of the terminal emulator.
* Add a new `--color` option to the CLI parser in `crates/goose-cli/src/main.rs` with options `auto`, `always`, `never`, and `base16`.
* Update the `main` function in `crates/goose-cli/src/main.rs` to handle the `--color` option and set the appropriate environment variable.
* Pass the `--color` option to the `handle_configure` function in `crates/goose-cli/src/commands/configure.rs`.
* Update the `configure_provider_dialog`, `toggle_extensions_dialog`, and `configure_extensions_dialog` functions in `crates/goose-cli/src/commands/configure.rs` to respect the `--color` option.
* Update the `RustylinePrompt` struct in `crates/goose-cli/src/prompt/rustyline.rs` to include a `color_mode` field and initialize it based on the `--color` option.
* Update the `render`, `print_markdown`, and `print_params` functions in `crates/goose-cli/src/prompt/renderer.rs` to respect the `color_mode` field.
* Add documentation for the new `--color` option in `documentation/docs/guides/goose-cli-commands.md`.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1089?shareId=XXXX-XXXX-XXXX-XXXX).
I would like goose cli to blend in with the rest of my cli and only use the base 16 colors of my terminal emulator.
I believe there are a handful of dependencies goose uses which control some parts of the output,
bat
,cliclack
,console
,rustyline
. Some of these currently respect aNO_COLOR
environment variable being set. But that is a bit drastic and not consistent throughout the app. Ideally goose exposed a control for colors.The text was updated successfully, but these errors were encountered: