Page MenuHomeDevCentral

Offer an option to append or prepend the line
ClosedPublic

Authored by dereckson on Oct 2 2018, 21:30.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 05:58
Unknown Object (File)
Thu, Apr 18, 19:17
Unknown Object (File)
Thu, Apr 18, 01:20
Unknown Object (File)
Sun, Apr 14, 11:35
Unknown Object (File)
Sat, Apr 13, 05:25
Unknown Object (File)
Fri, Apr 12, 14:52
Unknown Object (File)
Tue, Apr 9, 21:00
Unknown Object (File)
Tue, Apr 9, 16:33
Subscribers
None

Details

Summary

The output is clearly more legible when the container name is put
before the text, especially for ps where arguments could be long.

By default, the command prepends 20 characters with container name
and spaces. This behavior can be modified by the --append flag
and the -w <number of characters> argument.

Ref T1456

Test Plan
  • test prepend/append modes
  • check how container name is truncated
  • non UTF-8 console (… is replaced by +)

Diff Detail

Repository
rDP Docker Processes
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
dereckson marked an inline comment as done.
dereckson added inline comments.
internal/consoleutilities/consoleutilities.go
9

man 7 environ indicated LC_ALL is an override for those two.

This revision is now accepted and ready to land.Oct 3 2018, 09:49
This revision was automatically updated to reflect the committed changes.