mirror of
https://github.com/nushell/nushell.git
synced 2024-12-24 16:09:11 +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()),
|
||||
"; ",
|
||||
),
|
||||
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