import fire
from configue import load


class CLI:
    """Regroup all the commands of the CLI
    """

    @staticmethod
    def run(config_path: str) -> None:
        config = load(config_path)
        command = config["command"]
        command.run()


if __name__ == "__main__":
    fire.Fire(CLI)