def write_contest_header(contest_type):
  if contest_type == challenge().ACTIVE:
    click.secho("%-3s  %-50s    %-20s    %-11s    %-15s" % 
    ("NO.", "NAME", "ENDS IN", "DURATION", "PLATFORM"))
  elif contest_type == challenge().UPCOMING:
    click.secho("%-3s  %-50s    %-20s    %-11s    %-15s" % 
    ("NO.", "NAME", "STARTS IN", "DURATION", "PLATFORM"))
  elif contest_type in [challenge().HIRING, challenge().SHORT, challenge().ALL]:
    click.secho("%-3s  %-50s    %-20s    %-11s    %-15s" % 
    ("NO.", "NAME", "STARTS/ENDS IN", "DURATION", "PLATFORM"))
Get the command or return None (or issue an error) if there is none.
dataset/ETHPy150Open architv/chcli/challenges/writers.py/write_contest_header--crossover with--dataset/ETHPy150Open google/google-apputils/google/apputils/appcommands.py/GetCommand