mirror of
https://github.com/nushell/nushell
synced 2024-11-10 15:14:14 +00:00
improve duration print
This commit is contained in:
parent
2e4b0b0b17
commit
ddb9d3a864
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ impl PrettyDebug for FormatInlineShape {
|
|||
}),
|
||||
InlineShape::Date(date) => b::primitive(date.humanize()),
|
||||
InlineShape::Duration(duration) => {
|
||||
(b::kind("duration") + b::space() + b::primitive(duration)).group()
|
||||
b::description(Primitive::Duration(*duration).format(None))
|
||||
}
|
||||
InlineShape::Path(path) => b::primitive(path.display()),
|
||||
InlineShape::Binary => b::opaque("<binary>"),
|
||||
|
|
Loading…
Reference in a new issue