nushell/crates/nu-command/src
Kornél Csernai 31e1410191
respect use_ansi_coloring configuration (#7912)
# Description

Use the `use_ansi_coloring` configuration point to decide whether the
output will have colors, where possible.

Related: https://github.com/nushell/nushell/issues/7676


![image](https://user-images.githubusercontent.com/749306/215435128-cbf5f4b8-aafa-4718-bf23-3f0fd19b63ba.png)

- [x] `grid -c`
- [x] `perf()`

# User-Facing Changes

_(List of all changes that impact the user experience here. This helps
us keep track of breaking changes.)_

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
2023-02-02 00:03:05 +01:00
..
bits Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
bytes Add Github Actions workflow to check for typos (#7892) 2023-01-29 10:22:56 +13:00
charting Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
conversions Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
core_commands Apply more recent/nightly clippy lints (#7916) 2023-01-30 14:06:36 +01:00
database Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
dataframe Apply more recent/nightly clippy lints (#7916) 2023-01-30 14:06:36 +01:00
date Apply more recent/nightly clippy lints (#7916) 2023-01-30 14:06:36 +01:00
deprecated ensure that when nu evaluates files, it allows early returns (#7415) 2023-02-02 00:02:27 +01:00
env ensure that when nu evaluates files, it allows early returns (#7415) 2023-02-02 00:02:27 +01:00
experimental add ability to view-source on closures (#7935) 2023-02-01 20:48:27 +02:00
filesystem Fix: dst error on cp command (#7895) 2023-02-01 21:48:21 +01:00
filters Remove deprecated where -b parameter (#7927) 2023-01-31 21:05:28 +02:00
formats Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
generators Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
hash Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
math Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
misc Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
network Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
path Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
platform Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
random Add search terms in random and expression categories (#7736) 2023-01-12 14:01:40 +01:00
shells Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
strings Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
system Apply more recent/nightly clippy lints (#7916) 2023-01-30 14:06:36 +01:00
viewers respect use_ansi_coloring configuration (#7912) 2023-02-02 00:03:05 +01:00
default_context.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
example_test.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
input_handler.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
lib.rs Progress bar Implementation (#7661) 2023-01-10 20:57:48 -05:00
progress_bar.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
sort_utils.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00