nushell/crates/nu-command/src
WindSoilder e1df8d14b4
improve doc about flatten (#7856)
# Description

Relative #7210 

Improve doc to clarify current behavior.

To flatten all nested levels, we can use the following custom
command(maybe making it into our lib):
```
def flatten_all_nested [input_table: any] {
    mut input = $input_table

    mut flattened = ($input | flatten --all)
    while $input != $flattened {
        $input = $flattened
        $flattened = ($input | flatten --all)
    }
    $flattened
}
```

# 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-01-25 10:10:30 -08:00
..
bits Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
bytes Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
charting Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
conversions Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
core_commands Fix the build after #7204 (#7857) 2023-01-24 22:12:15 -08:00
database Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
dataframe Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
date Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
deprecated fetch -> http get and post -> http post (#7796) 2023-01-20 10:38:30 -08:00
env Fix an example of env command (#7603) 2022-12-26 16:40:34 +08:00
experimental Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
filesystem Check all user groups. (#7775) 2023-01-17 19:49:54 -06:00
filters improve doc about flatten (#7856) 2023-01-25 10:10:30 -08:00
formats To csv fix (#7850) 2023-01-25 08:42:53 -06:00
generators Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
hash Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
math Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
misc Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
network Feat/7725 url join (#7823) 2023-01-22 19:49:40 +01:00
path spanned error on path exists command (#7717) 2023-01-12 06:56:39 -06:00
platform add magenta to ansi command as synonym for purple (#7785) 2023-01-17 19:50:55 -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 fetch -> http get and post -> http post (#7796) 2023-01-20 10:38:30 -08:00
system Allow main command to define top-level module command (#7764) 2023-01-22 21:34:15 +02:00
viewers nu-table: Wrap last column in table -e (#7778) 2023-01-20 14:18:22 -08:00
default_context.rs Feat/7725 url join (#7823) 2023-01-22 19:49:40 +01:00
example_test.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01: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