nushell/crates/nu-command/src
Darren Schroeder d5ce509e3a
move ast command to the debug group (#8077)
# Description

This PR tweaks how `ast` works a tiny bit by outputting values in stead
of eprintln!'s. It also moves the `ast` command into the folder with the
rest of the debug commands and changes the category to debug.

I started adding some tests but couldn't figure out a good way to do it
since every `ast` command contains spans that will be different on each
invocation.

# User-Facing 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-14 18:47:34 +00:00
..
bits Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
bytes Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
charting Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
conversions A fill command to replace str lpad and str rpad (#7846) 2023-02-09 14:56:52 -06:00
core_commands move ast command to the debug group (#8077) 2023-02-14 18:47:34 +00:00
database Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
dataframe Make plugin commands support examples. (#7984) 2023-02-08 16:14:18 -06:00
date report which datetime couldn't be converted (#7980) 2023-02-06 14:17:07 -06:00
debug move ast command to the debug group (#8077) 2023-02-14 18:47:34 +00:00
deprecated add benchmark to deprecated commands (#8046) 2023-02-11 21:39:55 +00:00
env Load env pwd (#7963) 2023-02-05 23:40:46 +01:00
experimental relocate debug commands (#8071) 2023-02-13 16:39:07 +00:00
filesystem #8027 Hide implementation details in invalid cd call (#8049) 2023-02-13 02:24:48 +00:00
filters Benchmark each pipeline element (#7854) 2023-02-11 21:35:48 +00:00
formats Move some from xxx commands to plugin (#7942) 2023-02-13 12:42:08 +00:00
generators Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
hash Make plugin commands support examples. (#7984) 2023-02-08 16:14:18 -06:00
math Update few examples of math commands (#7987) 2023-02-06 13:43:00 +01:00
misc Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
network http: add --insecure flag to http get, share common code (#7992) 2023-02-07 14:22:19 -08:00
path Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
platform Validate input range of du flags (#7962) 2023-02-06 21:34:32 +01:00
random Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
shells Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
strings Improve error when regex rejects pattern. Resolution of #8037 (#8050) 2023-02-12 13:25:40 +00:00
system relocate debug commands (#8071) 2023-02-13 16:39:07 +00:00
viewers nu-table/ Fix table --expand issue when table with no header involved (#8045) 2023-02-12 23:28:42 +00:00
default_context.rs move ast command to the debug group (#8077) 2023-02-14 18:47:34 +00:00
example_test.rs Remove deprecated --numbered flag from four commands (#7777) 2023-02-02 16:59:58 -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 relocate debug commands (#8071) 2023-02-13 16:39:07 +00: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