HomeDevCentral

Offer an option to append or prepend the line

Description

Offer an option to append or prepend the line

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 +)

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1456

Differential Revision: https://devcentral.nasqueron.org/D1837

Details

Provenance
derecksonAuthored on Oct 2 2018, 21:23
derecksonPushed on Oct 3 2018, 09:49
Reviewer
dereckson
Differential Revision
D1837: Offer an option to append or prepend the line
Parents
rDP92266118cb32: Provide a what-container pipe command to add a container column
Branches
Unknown
Tags
Unknown
Tasks
T1456: Create a tool to offer a ps or top view per containers