nushell/crates/nu-command/src
Darren Schroeder c1738620e3
remove unwraps in registry_query command (#10936)
# Description

After talking to @CAD97, I decided to change these unwraps to expects.
See the comments. The bigger question is, how did unwrap pass the CI?

# 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` to
check that you're using the standard code style
- `cargo test --workspace` to check that all tests pass (on Windows make
sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# 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-11-03 08:12:36 -05:00
..
bytes Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
charting Reuse Closure type in Value::Closure (#10894) 2023-10-30 23:34:23 +01:00
conversions Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
database Reuse Closure type in Value::Closure (#10894) 2023-10-30 23:34:23 +01:00
date Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
debug Reuse Closure type in Value::Closure (#10894) 2023-10-30 23:34:23 +01:00
env Fix editor config for reedline and config nu/env (#10535) 2023-09-29 16:36:03 +02:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Add umkdir command (#10785) 2023-10-30 07:59:48 -05:00
filters allow compact to also compact empty strings (#10912) 2023-11-01 13:56:25 -05:00
formats Disallow duplicated columns in table literals (#10875) 2023-11-01 21:25:35 +01:00
generators add unfold back with a deprecation warning (#10771) 2023-10-19 19:23:06 +02:00
hash Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
help Add 'help escapes' command for quick reference of nushell string escapes (#10522) 2023-09-30 09:04:27 -05:00
math Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
misc Add long options for misc and network (#10753) 2023-10-19 18:16:44 +02:00
network Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
path Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
platform Change input list to return null (#10913) 2023-11-02 19:57:06 +01:00
random Add long options for platform and random (#10776) 2023-10-19 22:04:33 +02:00
removed Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
shells Fix usage for the exit command. (#9450) 2023-06-16 10:09:02 +02:00
strings Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
system remove unwraps in registry_query command (#10936) 2023-11-03 08:12:36 -05:00
viewers Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
default_context.rs Add umkdir command (#10785) 2023-10-30 07:59:48 -05:00
example_test.rs feat: Add unfold command (#10489) 2023-09-30 09:08:06 -05:00
lib.rs Move eval_hook to nu-cmd-base (#10146) 2023-08-29 23:46:50 +02:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00