mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
chore: show total duration in debug
This commit is contained in:
parent
4f39b68d96
commit
14bd8b0f29
|
@ -163,6 +163,7 @@ func (e *engine) debug() string {
|
|||
segmentName := fmt.Sprintf("%s(%t)", segment.name, segment.enabled)
|
||||
e.write(fmt.Sprintf("%-*s - %3d ms - %s\n", largestSegmentNameLength, segmentName, duration, segment.stringValue))
|
||||
}
|
||||
e.write(fmt.Sprintf("\n\x1b[1mRun duration:\x1b[0m %s\n", time.Since(start)))
|
||||
e.write("\n\x1b[1mLogs:\x1b[0m\n\n")
|
||||
e.write(e.env.logs())
|
||||
return e.string()
|
||||
|
|
Loading…
Reference in a new issue