nushell/crates/nu-command/src/core_commands
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
..
overlay Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
alias.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
break_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
commandline.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
const_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
continue_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
def_env.rs Fix def-env docs according to docs#761 (#7972) 2023-02-06 11:00:44 +01:00
def.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
describe.rs Make stream info visible to users in describe (#7589) 2023-01-03 21:08:05 -08:00
do_.rs make do -i works with liststream (#7889) 2023-02-02 00:04:53 +01:00
echo.rs Reduced LOC by replacing several instances of Value::Int {}, Value::Float{}, Value::Bool {}, and Value::String {} with Value::int(), Value::float(), Value::boolean() and Value::string() (#7412) 2022-12-09 11:37:51 -05:00
error_make.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
export_alias.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
export_def_env.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
export_def.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
export_extern.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
export_use.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
export.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
extern_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
for_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
help_aliases.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
help_commands.rs make help commands search term don't generate $nothing (#7896) 2023-01-28 18:57:26 -06:00
help_modules.rs Allow main command to define top-level module command (#7764) 2023-01-22 21:34:15 +02:00
help_operators.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
help.rs Reorder help <keyword> priority (#7929) 2023-02-05 23:51:09 +01:00
hide_env.rs Fix hidden env vars not being hidden in closures (#8055) 2023-02-12 17:48:51 +00:00
hide.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
if_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
ignore.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
let_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
loop_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
mod.rs move ast command to the debug group (#8077) 2023-02-14 18:47:34 +00:00
module.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
mut_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
register.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
return_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
try_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
use_.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
version.rs Apply more recent/nightly clippy lints (#7916) 2023-01-30 14:06:36 +01:00
while_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00