mirror of
https://github.com/docker/compose.git
synced 2025-04-07 19:55:07 +02:00
Shorten long commands in ps
This commit is contained in:
parent
b4c905dc83
commit
c4f5ed839f
@ -156,9 +156,12 @@ class TopLevelCommand(Command):
|
||||
]
|
||||
rows = []
|
||||
for container in containers:
|
||||
command = container.human_readable_command
|
||||
if len(command) > 30:
|
||||
command = '%s ...' % command[:30]
|
||||
rows.append([
|
||||
container.name,
|
||||
container.human_readable_command,
|
||||
command,
|
||||
container.human_readable_state,
|
||||
container.human_readable_ports,
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user