code: def summary(logfile, time_format):
    "show a summary of all projects"
  
    def output(summary):
      width = max([len(p[0]) for p in summary]) + 3
      print '\n'.join([
        "%s%s%s" % (p[0], ' ' * (width - len(p[0])),
          colored(minutes_to_txt(p[1]), 'red')) for p in summary])
  
    output(server.summarize(read(logfile, time_format, only_elapsed=True))f summary(logfile, time_format):
    "show a summary of all projects"
  
    def output(summary):
      width = max([len(p[0]) for p in summary]) + 3
      print '\n'.join([
        "%s%s%s" % (p[0], ' ' * (width - len(p[0])),
          colored(minutes_to_txt(p[1]), 'red')) for p in summary])
  
    output(server.summarize(read(logfile, time_format, only_elapsed=True)))
docs: show a summary of all projects