mirror of
https://github.com/nushell/nushell.git
synced 2024-12-25 08:29:07 +01:00
Merge pull request #229 from jonathandturner/better_short_names
Change list/object to better short names
This commit is contained in:
commit
7b548026a2
@ -477,8 +477,12 @@ impl Value {
|
|||||||
.map(|e| e.source(&b.source).to_string()),
|
.map(|e| e.source(&b.source).to_string()),
|
||||||
"; ",
|
"; ",
|
||||||
),
|
),
|
||||||
Value::Object(_) => format!("[object Object]"),
|
Value::Object(_) => format!("[{}]", self.type_name()),
|
||||||
Value::List(_) => format!("[list List]"),
|
Value::List(l) => format!(
|
||||||
|
"[{} {}]",
|
||||||
|
l.len(),
|
||||||
|
if l.len() == 1 { "item" } else { "items" }
|
||||||
|
),
|
||||||
Value::Binary(_) => format!("<binary>"),
|
Value::Binary(_) => format!("<binary>"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user