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
F11800558: D1837.id4640.diff
Tue, Sep 23, 13:44
Unknown Object (File)
Mon, Sep 22, 12:22
Unknown Object (File)
Sun, Sep 21, 13:13
Unknown Object (File)
Fri, Sep 19, 19:28
Unknown Object (File)
Fri, Sep 19, 14:01
Unknown Object (File)
Fri, Sep 12, 19:32
Unknown Object (File)
Fri, Sep 12, 02:22
Unknown Object (File)
Thu, Sep 11, 05:29
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.