remove size command in favor of str stats (#10784)

follow-up to
- https://github.com/nushell/nushell/pull/10798

> **Important**
> wait for between 0.87 and 0.88 to land this

# Description
once again, after deprecation comes removal 😌 

# User-Facing Changes
`size` is now removed and `str size` should be used

# Tests + Formatting

# After Submitting
This commit is contained in:
Antoine Stevan
2023-11-16 23:49:19 +01:00
committed by GitHub
parent ab59dab129
commit 84cdc0d521
5 changed files with 3 additions and 387 deletions

View File

@ -3,7 +3,7 @@ use nu_test_support::nu;
#[test]
fn generates_chars_of_specified_length() {
let actual = nu!(r#"
random chars --length 15 | size | get chars
random chars --length 15 | str stats | get chars
"#);
let result = actual.out;

View File

@ -21,7 +21,7 @@ fn redirect_err() {
Playground::setup("redirect_err_test", |dirs, _sandbox| {
let output = nu!(
cwd: dirs.test(),
"vol missingdrive err> a; (open a | size).bytes >= 16"
"vol missingdrive err> a; (open a | str stats).bytes >= 16"
);
assert!(output.out.contains("true"));
@ -50,7 +50,7 @@ fn redirect_outerr() {
cwd: dirs.test(),
"vol missingdrive out+err> a"
);
let output = nu!(cwd: dirs.test(), "(open a | size).bytes >= 16");
let output = nu!(cwd: dirs.test(), "(open a | str stats).bytes >= 16");
assert!(output.out.contains("true"));
})