nushell/crates/nu-command/src
Darren Schroeder e5d9f405db
add some tests for stor create (#11194)
# Description

This is a PR to start adding a few tests to the `stor` commands. It
refactors the `stor create` command so it's easier to write tests.

# 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-30 15:00:47 -06:00
..
bytes Convert ShellError::UnsupportedInput to named fields (#10971) 2023-11-07 23:25:32 +01:00
charting Use Vec for Closure captures (#10940) 2023-11-08 00:43:28 +01:00
conversions into binary -c: return 0 as single byte (#11068) 2023-11-16 04:09:31 -06:00
database Add stor family of commands (#11170) 2023-11-29 08:02:46 -08:00
date Improve case insensitivity consistency (#10884) 2023-11-08 23:58:54 +01:00
debug Move more commands to opaque Record type (#11122) 2023-11-22 23:48:48 +01:00
env Convert FileNotFoundCustom to named fields (#11123) 2023-11-21 17:30:21 -06:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00
filters Add metadata to some filters (#11160) 2023-11-27 12:16:34 -06:00
formats Spread operator in record literals (#11144) 2023-11-29 18:31:31 +01:00
generators remove the unfold command (#10773) 2023-11-17 06:50:20 +08:00
hash Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
help Convert ShellError::AliasNotFound to named fields (#11118) 2023-11-21 16:24:08 +08:00
math Move more commands to opaque Record type (#11122) 2023-11-22 23:48:48 +01:00
misc Add long options for misc and network (#10753) 2023-10-19 18:16:44 +02:00
network Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00
path Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00
platform Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06: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
stor add some tests for stor create (#11194) 2023-11-30 15:00:47 -06:00
strings Add boundary check for str index-of (#11190) 2023-11-30 08:13:10 -06:00
system Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00
viewers optimize/clean up a few of the table changes (#11076) 2023-11-16 11:37:46 -06:00
default_context.rs Add stor family of commands (#11170) 2023-11-29 08:02:46 -08:00
example_test.rs feat: Add unfold command (#10489) 2023-09-30 09:08:06 -05:00
lib.rs Add stor family of commands (#11170) 2023-11-29 08:02:46 -08:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Improve case insensitivity consistency (#10884) 2023-11-08 23:58:54 +01:00