Merge pull request #18 from orchardup/shorten-long-commands-in-ps
Shorten long commands in ps
This commit is contained in:
commit
5c8fac5993
1 changed files with 4 additions and 1 deletions
|
|
@ -156,9 +156,12 @@ class TopLevelCommand(Command):
|
||||||
]
|
]
|
||||||
rows = []
|
rows = []
|
||||||
for container in containers:
|
for container in containers:
|
||||||
|
command = container.human_readable_command
|
||||||
|
if len(command) > 30:
|
||||||
|
command = '%s ...' % command[:26]
|
||||||
rows.append([
|
rows.append([
|
||||||
container.name,
|
container.name,
|
||||||
container.human_readable_command,
|
command,
|
||||||
container.human_readable_state,
|
container.human_readable_state,
|
||||||
container.human_readable_ports,
|
container.human_readable_ports,
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue