mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
Merge pull request #1017 from jonathandturner/better_duration
improve duration print
This commit is contained in:
commit
b443a2d713
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