mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 08:53:29 +01:00
Change list/object to better short names
This commit is contained in:
parent
583ef0da32
commit
389d9988f3
@ -477,8 +477,12 @@ impl Value {
|
||||
.map(|e| e.source(&b.source).to_string()),
|
||||
"; ",
|
||||
),
|
||||
Value::Object(_) => format!("[object Object]"),
|
||||
Value::List(_) => format!("[list List]"),
|
||||
Value::Object(_) => format!("[{}]", self.type_name()),
|
||||
Value::List(l) => format!(
|
||||
"[{} {}]",
|
||||
l.len(),
|
||||
if l.len() == 1 { "item" } else { "items" }
|
||||
),
|
||||
Value::Binary(_) => format!("<binary>"),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user