'Display the running processes
Usage: top [SERVICE...]'

def top(self, options):

    containers = sorted((self.project.containers(service_names=options[u'SERVICE'], stopped=False) + self.project.containers(service_names=options[u'SERVICE'], one_off=OneOffFilter.only)), key=attrgetter(u'name'))
    for (idx, container) in enumerate(containers):
        if (idx > 0):
            print()
        top_data = self.project.client.top(container.name)
        headers = top_data.get(u'Titles')
        rows = []
        for process in top_data.get(u'Processes', []):
            rows.append(process)
        print(container.name)
        print(Formatter().table(headers, rows))
