code: def competitions_list_cli(self,
                                group=None,
                                category=None,
                                sort_by=None,
                                page=1,
                                search=None,
                                csv_display=False):
          competitions = self.competitions_list(
              group=group,
              category=category,
              sort_by=sort_by,
              page=page,
              search=search)
          fields = [
              'ref', 'deadline', 'category', 'reward', 'teamCount',
              'userHasEntered'
          ]
          if competitions:
              if csv_display:
                  self.print_csv(competitions, fields)
              else:
                  self.print_table(competitions, fields)
          else:
              print('No competitions found')