def movie_list_lists(options):
 lists = get_movie_lists()
 header = [u'#', u'List Name']
 table_data = [header]
 for movie_list in lists:
  table_data.append([movie_list.id, movie_list.name])
 try:
  table = TerminalTable(options.table_type, table_data)
 except TerminalTableError as e:
  console(u'ERROR: {}'.format(e))
 else:
  console(table.output)

def movie_list_lists ( options ) : lists = get_movie_lists ( ) header = [ u'#' , u'List Name' ] table_data = [ header ] for movie_list in lists : table_data . append ( [ movie_list . id , movie_list . name ] ) try : table = TerminalTable ( options . table_type , table_data ) except TerminalTableError as e : console ( u'ERROR: {}' . format ( e ) ) else : console ( table . output )
show all movie lists .