nushell/crates/nu-command/src
Artemiy a13946e3ef
New xml format (#7947)
# Description

Changes old `from xml` `to xml` data formats. See #7682 for reasoning
behind this change.
Output is now a series of records with `tag`, `attributes` and `content`
fields.

Old:

![image](https://user-images.githubusercontent.com/17511668/224508728-92d37c1f-ebac-4d5c-924d-bebd60f5cf85.png)
New:

![image](https://user-images.githubusercontent.com/17511668/224508753-a2de338a-ff2a-41e0-bbc1-ccc07a1d00ce.png)


# User-Facing Changes

New output/input format, better error handling for `from xml` and `to
xml` commands.

# 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-03-12 12:35:42 +13:00
..
bits Document and critically review ShellError variants - Ep. 1 (#8229) 2023-03-01 20:34:48 +01:00
bytes Document and critically review ShellError variants - Ep. 2 (#8326) 2023-03-06 11:31:07 +01:00
charting Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
conversions fixed an error message that popped up after landing (#8356) 2023-03-07 19:02:48 -06:00
database Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
dataframe Fix to json for SQLite databases (#8343) 2023-03-06 14:36:26 -08:00
date Fix 8244 -- store timestamps with nanosecond resolution (consistently) (#8337) 2023-03-07 17:02:15 -06:00
debug Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
deprecated Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
env Error out when config.nu has no editor configured (#8282) 2023-03-09 08:07:20 -06:00
experimental Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
filesystem Revert to notify v4 (#8367) 2023-03-08 21:45:58 -08:00
filters Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
formats New xml format (#7947) 2023-03-12 12:35:42 +13:00
generators Document and critically review ShellError variants - Ep. 2 (#8326) 2023-03-06 11:31:07 +01:00
hash Document and critically review ShellError variants - Ep. 1 (#8229) 2023-03-01 20:34:48 +01:00
math Document and critically review ShellError variants - Ep. 1 (#8229) 2023-03-01 20:34:48 +01:00
misc Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
network Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
path Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
platform Document and critically review ShellError variants - Ep. 2 (#8326) 2023-03-06 11:31:07 +01:00
random Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
shells Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
strings FIX: redirect to encode base64 as hash bash64 is deprecated (#8351) 2023-03-07 20:04:54 +01:00
system Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
viewers Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
default_context.rs Remove the 'env' command, as we have the variable (#8185) 2023-03-01 21:20:00 +13:00
example_test.rs cratification: Example support (#8231) 2023-02-27 13:58:56 -08: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 Cratification: Break out nu_cmd_lang into a separate crate (#8181) 2023-02-24 09:54:42 -06:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00