nushell/crates/nu-command/src/platform
Eric Hodel 8386bc0919
Convert more ShellError variants to named fields (#11173)
# Description

Convert these ShellError variants to named fields:
* CreateNotPossible
* MoveNotPossibleSingle
* DirectoryNotFoundCustom
* DirectoryNotFound
* NotADirectory
* OutOfMemoryError
* PermissionDeniedError
* IOErrorSpanned
* IOError
* IOInterrupted

Also place the `span` field of `DirectoryNotFound` last to match other
errors.

Part of #10700 (almost half done!)

# User-Facing Changes

None

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

N/A
2023-11-28 06:43:51 -06:00
..
ansi Move ansi link from extra to default feature, close #10792 (#10801) 2023-10-21 11:04:37 -05:00
input Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00
clear.rs Convert more ShellError variants to named fields (#11173) 2023-11-28 06:43:51 -06:00
dir_info.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
du.rs Allow filesystem commands to access files with glob metachars in name (#10694) 2023-10-18 13:31:15 -05:00
is_terminal.rs Add is-terminal to determine if stdin/out/err are a terminal (#10970) 2023-11-21 20:48:39 -06:00
kill.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
mod.rs Add is-terminal to determine if stdin/out/err are a terminal (#10970) 2023-11-21 20:48:39 -06:00
sleep.rs return error when user break sleep by ctrl-c (#10234) 2023-09-05 09:21:30 -05:00
term_size.rs Create Record type (#10103) 2023-08-25 07:50:29 +12:00
whoami.rs implement whoami using uutils (#10488) 2023-10-25 09:53:52 -05:00