nushell/crates/nu-command/src
nibon7 ca05553fc6
Simplify clear implementation (#11273)
# Description
This PR uses the `crossterm` api to reimplement `clear` command, since
`crossterm` is cross-platform.
This seems to work on linux and windows.

# User-Facing Changes
N/A

# Tests + Formatting
- [x] `cargo fmt --all -- --check` to check standard code formatting
(`cargo fmt --all` applies these changes)
- [x] `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used`
to check that you're using the standard code style
- [x] `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))
- [x] `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library

# After Submitting
N/A
2023-12-09 15:24:19 -06:00
..
bytes Convert ShellError::UnsupportedInput to named fields (#10971) 2023-11-07 23:25:32 +01:00
charting Convert more ShellError variants to named fields (#11222) 2023-12-04 10:19:32 +01:00
conversions into binary -c: return 0 as single byte (#11068) 2023-11-16 04:09:31 -06:00
database Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
date Improve case insensitivity consistency (#10884) 2023-11-08 23:58:54 +01:00
debug Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
env Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
filters Fix replacement closures for update, insert, and upsert (#11258) 2023-12-09 15:22:45 -06:00
formats Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
generators Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
hash Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
help Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01: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 Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
path Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
platform Simplify clear implementation (#11273) 2023-12-09 15:24:19 -06:00
random Fix span of invalid range (#11207) 2023-12-02 07:33:05 -06: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 Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
strings Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
system Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
viewers Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01: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 Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00