#!/usr/bin/env python

# Example course script

import sys
from travo import Course, GitLab
from travo.script import main

forge = GitLab("https://gitlab.u-psud.fr")
course = Course(forge=forge,
                path="ProjetMathInfo",
                name="Projet Pluridisciplinaire Math-Informatique",
                student_dir="~/ProjetMathInfo",
                assignments_group_path="L1Info/ProjetMathInfo/2020-2021",
                assignments_group_name="2020-2021",
                script="projet-math-info")

usage = f"""Aide pour l'utilisation de la commande {course.script}
===============================================

Télécharger ou mettre à jour un TP ou un projet (ici pour le TP1):

    {course.script} fetch TP1

Soumettre son TP ou projet (ici pour le TP1):

    {course.script} submit TP1

Plus d'aide:

    {course.script} --help
"""

main(course, usage)
