mirror of https://github.com/docker/compose.git
Merge pull request #18 from orchardup/shorten-long-commands-in-ps
Shorten long commands in ps
This commit is contained in:
commit
5c8fac5993
|
@ -156,9 +156,12 @@ class TopLevelCommand(Command):
|
|||
]
|
||||
rows = []
|
||||
for container in containers:
|
||||
command = container.human_readable_command
|
||||
if len(command) > 30:
|
||||
command = '%s ...' % command[:26]
|
||||
rows.append([
|
||||
container.name,
|
||||
container.human_readable_command,
|
||||
command,
|
||||
container.human_readable_state,
|
||||
container.human_readable_ports,
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue